Spaces:
Runtime error
Runtime error
syurein
commited on
Commit
·
ef356f3
1
Parent(s):
c51196d
エラーハンドリングの強化
Browse files
app.py
CHANGED
|
@@ -1204,7 +1204,7 @@ async def create_mask_sum2(image: UploadFile = File(...), risk_level: int = Form
|
|
| 1204 |
print('point1,point2',point1,point2)#消去したくない範囲のこと
|
| 1205 |
# OpenCVでインペイント
|
| 1206 |
inpaint_image_with_mask1(input_path, mask_path, output_path)
|
| 1207 |
-
response=classify_image2(image)
|
| 1208 |
response = response['danger'] # レスポンスから必要な情報を抽出
|
| 1209 |
return FileResponse(
|
| 1210 |
output_path,
|
|
|
|
| 1204 |
print('point1,point2',point1,point2)#消去したくない範囲のこと
|
| 1205 |
# OpenCVでインペイント
|
| 1206 |
inpaint_image_with_mask1(input_path, mask_path, output_path)
|
| 1207 |
+
response=await classify_image2(image)
|
| 1208 |
response = response['danger'] # レスポンスから必要な情報を抽出
|
| 1209 |
return FileResponse(
|
| 1210 |
output_path,
|