Spaces:
Runtime error
Runtime error
Commit
·
736a5e1
1
Parent(s):
6a6d06b
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
import os
|
2 |
-
os.chdir(f"/home/
|
3 |
os.system(f"apt -y update -qq")
|
4 |
-
os.system(f"wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /home/
|
5 |
-
os.system(f"env LD_PRELOAD=/
|
6 |
os.system(f"apt -y install -qq aria2")
|
7 |
os.system(f"pip install -q xformers==0.0.20 triton==2.0.0 -U")
|
8 |
os.system(f"git clone -b v2.6 https://dagshub.com/camenduru/ui")
|
9 |
-
os.system(f"git clone https://github.com/camenduru/control /home/
|
10 |
-
os.system(f"cd /home/
|
11 |
os.system(f"git reset --hard")
|
12 |
-
os.system(f"git -C /
|
13 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/sd_xl_base_1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors -d /home/
|
14 |
-
os.system(f"python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple")
|
|
|
1 |
import os
|
2 |
+
os.chdir(f"/home/user/app")
|
3 |
os.system(f"apt -y update -qq")
|
4 |
+
os.system(f"wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /home/user/app/libtcmalloc_minimal.so.4")
|
5 |
+
os.system(f"env LD_PRELOAD=/home/user/app/libtcmalloc_minimal.so.4")
|
6 |
os.system(f"apt -y install -qq aria2")
|
7 |
os.system(f"pip install -q xformers==0.0.20 triton==2.0.0 -U")
|
8 |
os.system(f"git clone -b v2.6 https://dagshub.com/camenduru/ui")
|
9 |
+
os.system(f"git clone https://github.com/camenduru/control /home/user/app/ui/extensions/control")
|
10 |
+
os.system(f"cd /home/user/app/ui")
|
11 |
os.system(f"git reset --hard")
|
12 |
+
os.system(f"git -C /home/user/app/ui/repositories/stable-diffusion-stability-ai reset --hard")
|
13 |
+
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/sd_xl_base_1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors -d /home/user/app/ui/models/Stable-diffusion -o sd_xl_base_1.0.safetensors")
|
14 |
+
os.system(f"python launch.py --cors-allow-origins=* --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple")
|