Update app.py
Browse files
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}/{
|
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)):
|