Download app.py from ashraf-alashwal/SketchToImageDemo: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/ashraf-alashwal/SketchToImageDemo/resolve/main/app.py
- Command line
-
hf download hf://spaces/ashraf-alashwal/SketchToImageDemo/app.py
-
curl -L -o app.py https://huggingface.co/spaces/ashraf-alashwal/SketchToImageDemo/resolve/main/app.py
478 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 gokaygokay/Sketch-to-Image-Kontext-Dev-LoRA 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/gokaygokay/Sketch-to-Image-Kontext-Dev-LoRA", accept_token=button, provider="fal-ai") | |
| demo.launch() |