freddyaboulton HF Staff commited on
Commit
bc24d91
·
verified ·
1 Parent(s): dfe9c5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -242,7 +242,8 @@ with gr.Blocks(theme=theme, css=css) as demo:
242
  inputs=[prompt, sampler_type, duration, steps, cfg_scale, sigma_min, sigma_max],
243
  outputs=output
244
  )
245
- demo.load(fn=list_all_outputs, inputs=generation_history, outputs=[generation_history, community_list], every=2)
 
246
 
247
  model, model_config = load_model()
248
 
 
242
  inputs=[prompt, sampler_type, duration, steps, cfg_scale, sigma_min, sigma_max],
243
  outputs=output
244
  )
245
+ timer = gr.Timer(2)
246
+ timer.tick(fn=list_all_outputs, inputs=generation_history, outputs=[generation_history, community_list])
247
 
248
  model, model_config = load_model()
249