Bubbles30 commited on
Commit
558a7e8
·
verified ·
1 Parent(s): 069c535

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(download_image, url, dl_path, fail_log, code, suf)
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()