xu3kev commited on
Commit
53f1a0a
1 Parent(s): b28f45c
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -328,11 +328,7 @@ def run(img_str):
328
  new_folder = os.path.join(gradio_test_images_folder, random_id)
329
  os.makedirs(new_folder, exist_ok=True)
330
 
331
-
332
-
333
- for code in tqdm(codes):
334
- pass
335
-
336
  from concurrent.futures import ProcessPoolExecutor
337
  from concurrent.futures import as_completed
338
  with ProcessPoolExecutor() as executor:
@@ -350,6 +346,7 @@ def run(img_str):
350
  # out, errs = p.communicate()
351
  # out, errs, = out.decode(), errs.decode()
352
  # render
 
353
  print(random_id)
354
  folder_path = f"gradio_test_images/{random_id}"
355
  return folder_path, codes
 
328
  new_folder = os.path.join(gradio_test_images_folder, random_id)
329
  os.makedirs(new_folder, exist_ok=True)
330
 
331
+ print('about to execute')
 
 
 
 
332
  from concurrent.futures import ProcessPoolExecutor
333
  from concurrent.futures import as_completed
334
  with ProcessPoolExecutor() as executor:
 
346
  # out, errs = p.communicate()
347
  # out, errs, = out.decode(), errs.decode()
348
  # render
349
+ print('finish execute')
350
  print(random_id)
351
  folder_path = f"gradio_test_images/{random_id}"
352
  return folder_path, codes