jihuaqiang hace 2 semanas
padre
commit
ee2bb6a395
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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))