Spaces:
Running
on
Zero
Running
on
Zero
from gradio import gr | |
def run_parallel_models(prompt): | |
return gr.update(), gr.update(), gr.update() | |
with gr.Blocks() as demo: | |
gr.Markdown("#Fast Flux Comparison") | |
with gr.Row(): | |
prompt = gr.Textbox() | |
submit = gr.Button() | |
with gr.Row(): | |
schnell = gr.Image(label="FLUX Schnell (4 steps)") | |
hyper = gr.Image(label="FLUX.1[dev] HyperFLUX (8 steps)") | |
turbo = gr.Image(lable="FLUX.1[dev]-Turbo-Alpha (8 steps)") | |
submit.click( | |
fn=run_parallel_models, | |
inputs=[prompt], | |
outputs=[schnell, hyper, turbo] | |
) | |
demo.launch() |