Download app.py from Blasitoo/tim2: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/Blasitoo/tim2/resolve/main/app.py
- Command line
-
hf download hf://spaces/Blasitoo/tim2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Blasitoo/tim2/resolve/main/app.py
340 Bytes
| import gradio as gr | |
| from gradio.mix import Series | |
| description = "Text to image" | |
| title = "Image generation" | |
| interface = gr.Interface.load("huggingface/stabilityai/stable-diffusion-xl-base-1.0", | |
| description=description, | |
| title = title, | |
| inputs=gr.Textbox(lines=10, label="Input Text") | |
| ) | |
| interface.launch() |