Spaces:
Running
Running
syurein
commited on
Commit
·
c0dcf37
1
Parent(s):
d63a0d3
二つ分にした
Browse files
app.py
CHANGED
@@ -1024,7 +1024,7 @@ async def create_mask_sum3(image: UploadFile = File(...),
|
|
1024 |
# 一意な識別子を生成
|
1025 |
unique_id = uuid.uuid4().hex
|
1026 |
input_path = save_image(image.file, f"./input_{timestamp}_{unique_id}.jpg")
|
1027 |
-
mask_path = llm_to_process_image_simple(
|
1028 |
output_path = f"./output_simple_lama_{timestamp}_{unique_id}.jpg"
|
1029 |
print('point1,point2',point1,point2)#消去したくない範囲のこと
|
1030 |
# OpenCVでインペイント
|
|
|
1024 |
# 一意な識別子を生成
|
1025 |
unique_id = uuid.uuid4().hex
|
1026 |
input_path = save_image(image.file, f"./input_{timestamp}_{unique_id}.jpg")
|
1027 |
+
mask_path = llm_to_process_image_simple(value, input_path, point1, point2,thresholds=thresholds)
|
1028 |
output_path = f"./output_simple_lama_{timestamp}_{unique_id}.jpg"
|
1029 |
print('point1,point2',point1,point2)#消去したくない範囲のこと
|
1030 |
# OpenCVでインペイント
|