alexnasa commited on
Commit
494b278
·
verified ·
1 Parent(s): a7ed924

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -261,7 +261,7 @@ def generate_image(
261
  use_words = []
262
  cur_run_time = time.strftime("%m%d-%H%M%S")
263
  tmp_dir_root = f"tmp/gradio_demo/{run_name}"
264
- temp_dir = f"{tmp_dir_root}/{session_id}/{cur_run_time}_{generate_random_string(4)}"
265
  os.makedirs(temp_dir, exist_ok=True)
266
  print(f"Temporary directory created: {temp_dir}")
267
  for i, (image_path, caption) in enumerate(zip(images, captions)):
 
261
  use_words = []
262
  cur_run_time = time.strftime("%m%d-%H%M%S")
263
  tmp_dir_root = f"tmp/gradio_demo/{run_name}"
264
+ temp_dir = f"{tmp_dir_root}/{cur_run_time}_{generate_random_string(4)}"
265
  os.makedirs(temp_dir, exist_ok=True)
266
  print(f"Temporary directory created: {temp_dir}")
267
  for i, (image_path, caption) in enumerate(zip(images, captions)):