multimodalart HF staff commited on
Commit
b1db469
1 Parent(s): 97606cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -82,12 +82,20 @@ with gr.Blocks() as demo:
82
  with gr.Column(scale=2):
83
  prompt = gr.Textbox(label="Prompt")
84
  with gr.Column(scale=1, min_width=120):
85
- submit = gr.Button()
86
  with gr.Row():
87
  schnell = gr.Image(label="FLUX Schnell (4 steps)")
88
  hyper = gr.Image(label="FLUX.1[dev] HyperFLUX (8 steps)")
89
  turbo = gr.Image(label="FLUX.1[dev]-Turbo-Alpha (8 steps)")
90
-
 
 
 
 
 
 
 
 
91
  submit.click(
92
  fn=run_parallel_models,
93
  inputs=[prompt],
 
82
  with gr.Column(scale=2):
83
  prompt = gr.Textbox(label="Prompt")
84
  with gr.Column(scale=1, min_width=120):
85
+ submit = gr.Button("Run")
86
  with gr.Row():
87
  schnell = gr.Image(label="FLUX Schnell (4 steps)")
88
  hyper = gr.Image(label="FLUX.1[dev] HyperFLUX (8 steps)")
89
  turbo = gr.Image(label="FLUX.1[dev]-Turbo-Alpha (8 steps)")
90
+
91
+ gr.Examples(
92
+ examples=[["the spirit of a Tamagotchi wandering in the city of Vienna"], ["a photo of a lavender cat"], ["a tiny astronaut hatching from an egg on the moon"], ["A delicious ceviche cheesecake slice"], ["an insect robot preparing a delicious meal"], ["A Charmander fine dining with a view to la Sagrada Família"]],
93
+ fn=run_parallel_models,
94
+ inputs=[prompt],
95
+ outputs=[schnell, hyper, turbo],
96
+ cache_examples="lazy"
97
+ )
98
+
99
  submit.click(
100
  fn=run_parallel_models,
101
  inputs=[prompt],