Spaces:
Sleeping
Sleeping
Download app.py from Master0fNone/TextToImageHW: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/spaces/Master0fNone/TextToImageHW/resolve/main/app.py
- Command line
-
hf download hf://spaces/Master0fNone/TextToImageHW/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Master0fNone/TextToImageHW/resolve/main/app.py
489 Bytes
| import gradio as gr | |
| with gr.Blocks(fill_height=True) as demo: | |
| with gr.Sidebar(): | |
| gr.Markdown("# Inference Provider") | |
| gr.Markdown("This Space demonstrates the black-forest-labs/FLUX.1-dev model, served by the nebius API. Sign in with your own Hugging Face account to use this API, because I don't have enough tokens.") | |
| button = gr.LoginButton("Log in") | |
| gr.load("models/black-forest-labs/FLUX.1-dev", accept_token=button, provider="nebius") | |
| demo.launch() |