Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
os.system(f"git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /home/user/app/web")
|
| 4 |
+
os.chdir("/home/user/app/web")
|
| 5 |
+
|
| 6 |
+
os.system(f"wget -q https://huggingface.co/prompthero/openjourney/resolve/main/mdjrny-v4.ckpt -O /home/user/app/web/models/Stable-diffusion/mdjrny-v4.ckpt")
|
| 7 |
+
os.system(f"python launch.py --force-enable-xformers --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
|
| 8 |
+
|