Spaces:
Sleeping
Sleeping
tr
Browse files
main.py
CHANGED
@@ -133,6 +133,7 @@ async def analyze_image(image_paths: list[UploadFile]):
|
|
133 |
# image_objects[filename] = image
|
134 |
except Exception as e:
|
135 |
# ファイル読み込み自体のエラーをキャッチ
|
|
|
136 |
all_results.append(
|
137 |
{"filename": filename, "error": f"画像読み込みエラー: {e}"}
|
138 |
)
|
@@ -164,7 +165,7 @@ async def analyze_image(image_paths: list[UploadFile]):
|
|
164 |
cand["player"] = player
|
165 |
all_candidates_global.append(cand)
|
166 |
|
167 |
-
|
168 |
progress(
|
169 |
0.4, desc="ステージ2/3: 文字認識を実行中... (時間がかかります)"
|
170 |
)
|
|
|
133 |
# image_objects[filename] = image
|
134 |
except Exception as e:
|
135 |
# ファイル読み込み自体のエラーをキャッチ
|
136 |
+
print(e)
|
137 |
all_results.append(
|
138 |
{"filename": filename, "error": f"画像読み込みエラー: {e}"}
|
139 |
)
|
|
|
165 |
cand["player"] = player
|
166 |
all_candidates_global.append(cand)
|
167 |
|
168 |
+
processed_files_info.append({"filename": filename, "error": None})
|
169 |
progress(
|
170 |
0.4, desc="ステージ2/3: 文字認識を実行中... (時間がかかります)"
|
171 |
)
|