Download app.py from lyh121/stabilityai-stable-diffusion-3-medium: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/lyh121/stabilityai-stable-diffusion-3-medium/resolve/main/app.py
- Command line
-
hf download hf://spaces/lyh121/stabilityai-stable-diffusion-3-medium/app.py
-
curl -L -o app.py https://huggingface.co/spaces/lyh121/stabilityai-stable-diffusion-3-medium/resolve/main/app.py
466 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 stabilityai/stable-diffusion-3-medium model, served by the fal-ai API. Sign in with your Hugging Face account to use this API.") | |
| button = gr.LoginButton("Sign in") | |
| gr.load("models/stabilityai/stable-diffusion-3-medium", accept_token=button, provider="fal-ai") | |
| demo.launch() |