abidlabs's picture
abidlabs HF Staff
Workflow app view preview (gradio PR #13893 @ 0a19c60ed)
49f3310 verified
Raw History Blame Contribute Delete
413 Bytes
import gradio as gr
# Side-by-side comparison of two text-to-image models via HF inference
# providers: one shared prompt fans out to krea/Krea-2-Turbo and
# black-forest-labs/FLUX.1-dev, each ending in its own output image. Because
# both outputs share the same input, they're exposed as ONE API endpoint that
# returns both images as a tuple.
demo = gr.Workflow()
if __name__ == "__main__":
demo.launch()