Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -161,6 +161,7 @@ def generate_image(setup_args, num_iterations):
|
|
161 |
if os.path.exists(final_image_path):
|
162 |
iter_images = list_iter_images(save_dir)
|
163 |
torch.cuda.empty_cache() # Free up cached memory
|
|
|
164 |
yield (final_image_path, f"Final image saved at {final_image_path}", iter_images)
|
165 |
else:
|
166 |
torch.cuda.empty_cache() # Free up cached memory
|
|
|
161 |
if os.path.exists(final_image_path):
|
162 |
iter_images = list_iter_images(save_dir)
|
163 |
torch.cuda.empty_cache() # Free up cached memory
|
164 |
+
time.sleep(0.5)
|
165 |
yield (final_image_path, f"Final image saved at {final_image_path}", iter_images)
|
166 |
else:
|
167 |
torch.cuda.empty_cache() # Free up cached memory
|