Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -299,7 +299,7 @@ def handle_batch(workbook_path, fmt, w, h):
|
|
| 299 |
futures = {}
|
| 300 |
with ThreadPoolExecutor(max_workers=os.cpu_count() or 4) as ex:
|
| 301 |
for code, url, dl_path, suf in tasks:
|
| 302 |
-
fut = ex.submit(
|
| 303 |
futures[fut] = (code, suf)
|
| 304 |
for fut in as_completed(futures):
|
| 305 |
success = fut.result()
|
|
|
|
| 299 |
futures = {}
|
| 300 |
with ThreadPoolExecutor(max_workers=os.cpu_count() or 4) as ex:
|
| 301 |
for code, url, dl_path, suf in tasks:
|
| 302 |
+
fut = ex.submit(download_image_fast, url, dl_path, fail_log, code, suf)
|
| 303 |
futures[fut] = (code, suf)
|
| 304 |
for fut in as_completed(futures):
|
| 305 |
success = fut.result()
|