fffiloni commited on
Commit
dbd0aa3
·
verified ·
1 Parent(s): 70c84a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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)