Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
|
|
3 |
import torch
|
4 |
from diffusers import AutoencoderKL, TCDScheduler
|
5 |
from diffusers.models.model_loading_utils import load_state_dict
|
@@ -286,6 +287,7 @@ def toggle_custom_resize_slider(resize_option):
|
|
286 |
|
287 |
def update_history(new_image, history):
|
288 |
"""Updates the history gallery with the new image."""
|
|
|
289 |
if history is None:
|
290 |
history = []
|
291 |
history.insert(0, new_image)
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
+
import time
|
4 |
import torch
|
5 |
from diffusers import AutoencoderKL, TCDScheduler
|
6 |
from diffusers.models.model_loading_utils import load_state_dict
|
|
|
287 |
|
288 |
def update_history(new_image, history):
|
289 |
"""Updates the history gallery with the new image."""
|
290 |
+
time.sleep(1)
|
291 |
if history is None:
|
292 |
history = []
|
293 |
history.insert(0, new_image)
|