Spaces:
Running on Zero
Running on Zero
Download app.py from Yunfeng20/black-forest-labs-FLUX.2-dev: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/Yunfeng20/black-forest-labs-FLUX.2-dev/resolve/main/app.py
- Command line
-
hf download hf://spaces/Yunfeng20/black-forest-labs-FLUX.2-dev/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Yunfeng20/black-forest-labs-FLUX.2-dev/resolve/main/app.py
420 Bytes
| import gradio as gr | |
| with gr.Blocks(fill_height=True) as demo: | |
| with gr.Sidebar(): | |
| gr.Markdown("# Inference Provider") | |
| gr.Markdown("This Space showcases the black-forest-labs/FLUX.2-dev model. Sign in with your Hugging Face account to use this API.") | |
| button = gr.LoginButton("Sign in") | |
| gr.load("models/black-forest-labs/FLUX.2-dev", accept_token=button, provider="auto") | |
| demo.launch() |