multimodalart HF staff commited on
Commit
bc87ae3
1 Parent(s): dc81866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -77,6 +77,12 @@ with gr.Blocks() as demo:
77
  with gr.Column():
78
  image_hyper = gr.Image(label="Hyper SDXL")
79
  gr.Markdown("## [Hyper SDXL](https://huggingface.co/ByteDance/Hyper-SD)")
 
 
 
 
 
 
 
80
 
81
- run.click(fn=run_comparison, inputs=prompt, outputs=[image_turbo, image_lightning, image_hyper])
82
  demo.launch()
 
77
  with gr.Column():
78
  image_hyper = gr.Image(label="Hyper SDXL")
79
  gr.Markdown("## [Hyper SDXL](https://huggingface.co/ByteDance/Hyper-SD)")
80
+
81
+ gr.on(
82
+ triggers=[prompt.submit, run.click],
83
+ fn=run_comparison,
84
+ inputs=prompt,
85
+ outputs=[image_turbo, image_lightning, image_hyper]
86
+ )
87
 
 
88
  demo.launch()