Spaces:
Runtime error
Runtime error
IAmXenos21
commited on
Commit
•
2410d08
1
Parent(s):
e9b766b
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ elif("T4" in gpu_info):
|
|
9 |
os.system(f"apt-get install git-lfs")
|
10 |
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+1515f77.d20221130-cp38-cp38-linux_x86_64.whl")
|
11 |
|
12 |
-
os.system(f"git clone https://github.com/
|
|
|
13 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
14 |
|
15 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
@@ -114,5 +115,5 @@ else:
|
|
114 |
#os.system(f"wget -q https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.ckpt")
|
115 |
os.system(f"wget -q https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.yaml")
|
116 |
|
117 |
-
os.system(f"python launch.py --
|
118 |
#--ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json
|
|
|
9 |
os.system(f"apt-get install git-lfs")
|
10 |
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+1515f77.d20221130-cp38-cp38-linux_x86_64.whl")
|
11 |
|
12 |
+
os.system(f"git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git /home/user/app/stable-diffusion-webui")
|
13 |
+
#os.system(f"git clone https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
14 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
15 |
|
16 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
|
|
115 |
#os.system(f"wget -q https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.ckpt")
|
116 |
os.system(f"wget -q https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.yaml")
|
117 |
|
118 |
+
os.system(f"python launch.py --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test --disable-safe-unpickle --skip-torch-cuda-test --no-half --listen --enable-insecure-extension-access")
|
119 |
#--ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json
|