이미지 크롤링 로직 변경 및 자막 이미지 매칭 보완

This commit is contained in:
skkim committed 2026-07-06 16:23:16 +09:00
1 parent 4d8462651a
commit b8be2a355a
16 files changed
+212 -74

No files matched your search

+2 -2
View File
@@ -36,7 +36,7 @@ async def autotag_images(image_url_list : list[str], industry: str = "") -> list
MAX_RETRY = 2
for _ in range(MAX_RETRY):
failed_idx = [i for i, r in enumerate(image_result_list) if isinstance(r, Exception)]
print("Failed", failed_idx)
# print("Failed", failed_idx)
if not failed_idx:
break
retried = await asyncio.gather(
@@ -46,5 +46,5 @@ async def autotag_images(image_url_list : list[str], industry: str = "") -> list
for i, result in zip(failed_idx, retried):
image_result_list[i] = result
print("Failed", failed_idx)
# print("Failed", failed_idx)
return image_result_list