Update app.py
Browse files
app.py
CHANGED
@@ -23,28 +23,19 @@ os.system(f"sed -i -e 's/inputs=\[component\],/&\\n queue=False,/
|
|
23 |
os.system(f"sed -i -e 's/outputs=\[token_counter\]/outputs=[token_counter], queue=False/g' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
24 |
|
25 |
# ----------------------------Please duplicate this space and delete this block if you don't want to see the extra header----------------------------
|
26 |
-
os.system(f"wget -q https://huggingface.co/spaces/ai-moroz/webui-cpu/resolve/main/header_patch.py -O /home/user/app/header_patch.py")
|
27 |
#os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
28 |
# ---------------------------------------------------------------------------------------------------------------------------------------------------
|
29 |
|
30 |
#AOM3A3.safetensors
|
31 |
-
os.system(f"wget -q https://huggingface.co/
|
32 |
|
33 |
|
34 |
-
#Embeddings
|
35 |
-
os.system(f"wget -q https://huggingface.co/ai-moroz/lazy-ti/resolve/main/dump/diona-gi.pt -O /home/user/app/stable-diffusion-webui/embeddings/diona-gi.pt")
|
36 |
-
os.system(f"wget -q https://huggingface.co/ai-moroz/lazy-ti/resolve/main/dump/xiao-gi.pt -O /home/user/app/stable-diffusion-webui/embeddings/xiao-gi.pt")
|
37 |
-
os.system(f"wget -q https://huggingface.co/ai-moroz/lazy-ti/resolve/main/dump/naruko-nrt.pt -O /home/user/app/stable-diffusion-webui/embeddings/naruko-nrt.pt")
|
38 |
-
os.system(f"wget -q https://huggingface.co/ai-moroz/lazy-ti/resolve/main/dump/thoma-gi.pt -O /home/user/app/stable-diffusion-webui/embeddings/thoma-gi.pt")
|
39 |
-
os.system(f"wget -q https://huggingface.co/ai-moroz/lazy-ti/resolve/main/dump/kaeya-gi.pt -O /home/user/app/stable-diffusion-webui/embeddings/kaeya-gi.pt")
|
40 |
-
os.system(f"wget -q https://huggingface.co/ai-moroz/lazy-ti/resolve/main/dump/ciel-tm.pt -O /home/user/app/stable-diffusion-webui/embeddings/ciel-tm.pt")
|
41 |
-
os.system(f"wget -q https://huggingface.co/ai-moroz/lazy-ti/resolve/main/dump/grinteeth.pt -O /home/user/app/stable-diffusion-webui/embeddings/grinteeth.pt")
|
42 |
|
43 |
if "IS_SHARED_UI" in os.environ:
|
44 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/shared-config.json -O /home/user/app/shared-config.json")
|
45 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/shared-ui-config.json -O /home/user/app/shared-ui-config.json")
|
46 |
-
|
47 |
-
#os.system(f"wget -q {os.getenv('MODEL_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('MODEL_NAME')}")
|
48 |
#os.system(f"wget -q {os.getenv('VAE_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('VAE_NAME')}")
|
49 |
|
50 |
os.system(f"python launch.py --force-enable-xformers --disable-console-progressbars --enable-console-prompts --ui-config-file /home/user/app/shared-ui-config.json --ui-settings-file /home/user/app/shared-config.json --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding")
|
@@ -53,7 +44,7 @@ else:
|
|
53 |
os.system(f"wget -q https://gist.github.com/camenduru/9ec5f8141db9902e375967e93250860f/raw/d0bcf01786f20107c329c03f8968584ee67be12a/run_n_times.py -O /home/user/app/stable-diffusion-webui/scripts/run_n_times.py")
|
54 |
# Please duplicate this space and delete # character in front of the extension you want to use or add here more extensions with same structure os.system(f"git clone https://EXTENSION_GIT_URL /home/user/app/stable-diffusion-webui/extensions/EXTENSION_NAME")
|
55 |
# Please duplicate this space and delete # character in front of the model you want to use or add here more ckpts with same structure os.system(f"wget -q https://CKPT_URL -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/CKPT_NAME.ckpt")
|
56 |
-
os.system(f"wget -q https://huggingface.co/
|
57 |
#os.system(f"wget -q {os.getenv('MODEL_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('MODEL_NAME')}")
|
58 |
#os.system(f"wget -q {os.getenv('VAE_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('VAE_NAME')}")
|
59 |
os.system(f"python launch.py --precision full --no-half --use-cpu SD GFPGAN BSRGAN ESRGAN SCUNet CodeFormer --all --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --skip-torch-cuda-test")
|
|
|
23 |
os.system(f"sed -i -e 's/outputs=\[token_counter\]/outputs=[token_counter], queue=False/g' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
24 |
|
25 |
# ----------------------------Please duplicate this space and delete this block if you don't want to see the extra header----------------------------
|
26 |
+
#os.system(f"wget -q https://huggingface.co/spaces/ai-moroz/webui-cpu/resolve/main/header_patch.py -O /home/user/app/header_patch.py")
|
27 |
#os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
28 |
# ---------------------------------------------------------------------------------------------------------------------------------------------------
|
29 |
|
30 |
#AOM3A3.safetensors
|
31 |
+
os.system(f"wget -q https://huggingface.co/AnonPerson/ChilloutMix/resolve/main/ChilloutMix-ni-fp16.safetensors -O /home/user/app/stable-diffusion-webui/embeddings/ChilloutMix-ni-fp16.safetensors")
|
32 |
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
if "IS_SHARED_UI" in os.environ:
|
36 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/shared-config.json -O /home/user/app/shared-config.json")
|
37 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/shared-ui-config.json -O /home/user/app/shared-ui-config.json")
|
38 |
+
#os.system(f"wget -q {os.getenv('MODEL_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('MODEL_NAME')}")
|
|
|
39 |
#os.system(f"wget -q {os.getenv('VAE_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('VAE_NAME')}")
|
40 |
|
41 |
os.system(f"python launch.py --force-enable-xformers --disable-console-progressbars --enable-console-prompts --ui-config-file /home/user/app/shared-ui-config.json --ui-settings-file /home/user/app/shared-config.json --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding")
|
|
|
44 |
os.system(f"wget -q https://gist.github.com/camenduru/9ec5f8141db9902e375967e93250860f/raw/d0bcf01786f20107c329c03f8968584ee67be12a/run_n_times.py -O /home/user/app/stable-diffusion-webui/scripts/run_n_times.py")
|
45 |
# Please duplicate this space and delete # character in front of the extension you want to use or add here more extensions with same structure os.system(f"git clone https://EXTENSION_GIT_URL /home/user/app/stable-diffusion-webui/extensions/EXTENSION_NAME")
|
46 |
# Please duplicate this space and delete # character in front of the model you want to use or add here more ckpts with same structure os.system(f"wget -q https://CKPT_URL -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/CKPT_NAME.ckpt")
|
47 |
+
os.system(f"wget -q https://huggingface.co/AnonPerson/ChilloutMix/resolve/main/ChilloutMix-ni-fp16.safetensors -O /home/user/app/stable-diffusion-webui/embeddings/ChilloutMix-ni-fp16.safetensors")
|
48 |
#os.system(f"wget -q {os.getenv('MODEL_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('MODEL_NAME')}")
|
49 |
#os.system(f"wget -q {os.getenv('VAE_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('VAE_NAME')}")
|
50 |
os.system(f"python launch.py --precision full --no-half --use-cpu SD GFPGAN BSRGAN ESRGAN SCUNet CodeFormer --all --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --skip-torch-cuda-test")
|