jihuaqiang 2 주 전
부모
커밋
ee2bb6a395
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/indentify/image_identifier.py

+ 1 - 1
tools/indentify/image_identifier.py

@@ -145,7 +145,7 @@ class ImageIdentifier:
                     return {"idx": idx, "url": url, "content": "", "success": False, "error": str(e)}
 
             # 并发最多5条
-            with ThreadPoolExecutor(max_workers=5) as executor:
+            with ThreadPoolExecutor(max_workers=2) as executor:
                 future_to_index = {}
                 for idx, url in enumerate(image_urls):
                     future = executor.submit(analyze_image_job, (idx, url))