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))