Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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],
|