Download sd_ui.py from diffle/webdef: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/diffle/webdef/resolve/main/sd_ui.py
- Command line
-
hf download hf://spaces/diffle/webdef/sd_ui.py
-
curl -L -o sd_ui.py https://huggingface.co/spaces/diffle/webdef/resolve/main/sd_ui.py
1.27 kB
| #import library | |
| import gradio as gr | |
| #ready library install | |
| print('✅️ All libraries installed!') | |
| #loading | |
| print('■') | |
| print('■■') | |
| print('■■■') | |
| print('■■') | |
| print('■') | |
| print('■') | |
| print('■■') | |
| print('■■■') | |
| print('■■') | |
| print('■') | |
| print('■') | |
| print('■■') | |
| print('■■■') | |
| print('■■') | |
| print('■') | |
| #title of app | |
| title = \ | |
| """ | |
| ---\|/●■●\|/--- | |
| """ | |
| #description of app | |
| description = \ | |
| """ | |
| __This is WebDef.UI__ Generate fantastic images with the latest AI models for __FREE__! | |
|  | |
| """ | |
| #article of app | |
| article = \ | |
| """ | |
| <h1 style='text-align: center'> | |
| 🖼 Examples 🗂 | |
| </h1> | |
|  | |
| """ | |
| #ready rum space | |
| print('🎉 The app is ready to go!') | |
| gr.Interface.load("models/runwayml/stable-diffusion-v1-5", title=title, description=description, article=article, theme = "Soft").launch() | |
| #models | |
| print("runwayml/stable-diffusion-v1-5") | |
| print("stabilityai/stable-diffusion-2-1") | |
| print("stabilityai/stable-diffusion-xl-base-1.0") | |
| print("prompthero/openjourney") | |
| print("dalle-mini/dalle-mini") |