Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,13 @@ else:
|
|
45 |
os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/config.json --content-disposition -O /home/user/app/stable-diffusion-webui/config.json")
|
46 |
|
47 |
# 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")
|
48 |
-
os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/user/app/stable-diffusion-webui/extensions")
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
# 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")
|
50 |
os.system(f"wget https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster/blob/main/v2/control_v1p_sd15_qrcode_monster_v2.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/control_v1p_sd15_qrcode_monster_v2.safetensors")
|
51 |
|
|
|
45 |
os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/config.json --content-disposition -O /home/user/app/stable-diffusion-webui/config.json")
|
46 |
|
47 |
# 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")
|
48 |
+
os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/user/app/stable-diffusion-webui/extensions")
|
49 |
+
# Run the ls command
|
50 |
+
result = subprocess.run(['ls'], stdout=subprocess.PIPE)
|
51 |
+
|
52 |
+
# Print the output
|
53 |
+
print(result.stdout.decode())
|
54 |
+
|
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 https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster/blob/main/v2/control_v1p_sd15_qrcode_monster_v2.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/control_v1p_sd15_qrcode_monster_v2.safetensors")
|
57 |
|