Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
b6d3179
1
Parent(s):
c8cac13
Update app.py
Browse files
app.py
CHANGED
@@ -44,19 +44,22 @@ def run_parallel_models(prompt):
|
|
44 |
yield gr.update(), gr.update(), image
|
45 |
|
46 |
#run_parallel_models.zerogpu = True
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
49 |
gr.Markdown("# Low Step Flux Comparison")
|
50 |
gr.Markdown("Compare the quality (not the speed) of FLUX Schnell (4 steps), FLUX.1[dev] HyperFLUX (8 steps), FLUX.1[dev]-Turbo-Alpha (8 steps). It runs a bit slow as it's inferencing the three models.")
|
51 |
with gr.Row():
|
52 |
with gr.Column(scale=2):
|
53 |
prompt = gr.Textbox(label="Prompt")
|
54 |
-
with gr.Column(scale=1, min_width=120):
|
55 |
-
submit = gr.Button("Run")
|
56 |
with gr.Row():
|
57 |
-
schnell = gr.Image(label="FLUX Schnell (4 steps)")
|
58 |
hyper = gr.Image(label="FLUX.1[dev] HyperFLUX (8 steps)")
|
59 |
turbo = gr.Image(label="FLUX.1[dev]-Turbo-Alpha (8 steps)")
|
|
|
60 |
|
61 |
gr.Examples(
|
62 |
examples=[
|
@@ -76,6 +79,6 @@ with gr.Blocks() as demo:
|
|
76 |
triggers=[submit.click, prompt.submit],
|
77 |
fn=run_parallel_models,
|
78 |
inputs=[prompt],
|
79 |
-
outputs=[
|
80 |
)
|
81 |
demo.launch()
|
|
|
44 |
yield gr.update(), gr.update(), image
|
45 |
|
46 |
#run_parallel_models.zerogpu = True
|
47 |
+
css = '''
|
48 |
+
#gen_btn{height: 100%}
|
49 |
+
#gen_column{align-self: stretch}
|
50 |
+
'''
|
51 |
+
with gr.Blocks(css=css) as demo:
|
52 |
gr.Markdown("# Low Step Flux Comparison")
|
53 |
gr.Markdown("Compare the quality (not the speed) of FLUX Schnell (4 steps), FLUX.1[dev] HyperFLUX (8 steps), FLUX.1[dev]-Turbo-Alpha (8 steps). It runs a bit slow as it's inferencing the three models.")
|
54 |
with gr.Row():
|
55 |
with gr.Column(scale=2):
|
56 |
prompt = gr.Textbox(label="Prompt")
|
57 |
+
with gr.Column(scale=1, min_width=120, elem_id="gen_column"):
|
58 |
+
submit = gr.Button("Run", elem_id="gen_btn")
|
59 |
with gr.Row():
|
|
|
60 |
hyper = gr.Image(label="FLUX.1[dev] HyperFLUX (8 steps)")
|
61 |
turbo = gr.Image(label="FLUX.1[dev]-Turbo-Alpha (8 steps)")
|
62 |
+
schnell = gr.Image(label="FLUX Schnell (4 steps)")
|
63 |
|
64 |
gr.Examples(
|
65 |
examples=[
|
|
|
79 |
triggers=[submit.click, prompt.submit],
|
80 |
fn=run_parallel_models,
|
81 |
inputs=[prompt],
|
82 |
+
outputs=[hyper, turbo, schnell]
|
83 |
)
|
84 |
demo.launch()
|