Spaces:
Running
on
Zero
Running
on
Zero
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from gradio import gr
|
2 |
+
|
3 |
+
def run_parallel_models(prompt):
|
4 |
+
return gr.update(), gr.update(), gr.update()
|
5 |
+
|
6 |
+
with gr.Blocks() as demo:
|
7 |
+
gr.Markdown("#Fast Flux Comparison")
|
8 |
+
with gr.Row():
|
9 |
+
prompt = gr.Textbox()
|
10 |
+
submit = gr.Button()
|
11 |
+
with gr.Row():
|
12 |
+
schnell = gr.Image(label="FLUX Schnell (4 steps)")
|
13 |
+
hyper = gr.Image(label="FLUX.1[dev] HyperFLUX (8 steps)")
|
14 |
+
turbo = gr.Image(lable="FLUX.1[dev]-Turbo-Alpha (8 steps)")
|
15 |
+
|
16 |
+
submit.click(
|
17 |
+
fn=run_parallel_models,
|
18 |
+
inputs=[prompt],
|
19 |
+
outputs=[schnell, hyper, turbo]
|
20 |
+
)
|
21 |
+
demo.launch()
|