Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
commands = [
|
| 4 |
+
'echo "Downloading LLavacheckpoints..."',
|
| 5 |
+
'wget -c https://huggingface.co/cjpais/llava-1.6-mistral-7b-gguf/resolve/main/llava-v1.6-mistral-7b.Q5_K_M.gguf -P ./models/LLavacheckpoints/',
|
| 6 |
+
'wget -c https://huggingface.co/NousResearch/Meta-Llama-3-8B-Instruct-GGUF/resolve/main/Meta-Llama-3-8B-Instruct-Q5_K_M.gguf -P ./models/LLavacheckpoints/',
|
| 7 |
+
|
| 8 |
+
'echo "Downloading IPAdapter Plus..."',
|
| 9 |
+
'mkdir -p ./models/ipadapter',
|
| 10 |
+
'wget -c https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter-plus-face_sdxl_vit-h.safetensors -P ./models/ipadapter',
|
| 11 |
+
'wget -c https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter-plus_sdxl_vit-h.safetensors -P ./models/ipadapter',
|
| 12 |
+
|
| 13 |
+
'echo "Downloading ClipVision..."',
|
| 14 |
+
'wget -c https://huggingface.co/ArtGAN/Controlnet/resolve/main/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors -P ./models/clip_vision/',
|
| 15 |
+
'wget -c https://huggingface.co/ArtGAN/Controlnet/resolve/main/sd15_model.safetensors -P ./models/clip_vision/',
|
| 16 |
+
|
| 17 |
+
'echo "Downloading Lora..."',
|
| 18 |
+
'wget -c https://huggingface.co/ArtGAN/Controlnet/resolve/main/lcm-lora-sdv1-5.safetensors -P ./models/loras/',
|
| 19 |
+
'wget -c https://huggingface.co/ArtGAN/Controlnet/resolve/main/lcm-lora-sdxl.safetensors -P ./models/loras/',
|
| 20 |
+
|
| 21 |
+
'echo "Downloading Motion Lora..."',
|
| 22 |
+
'wget -c https://huggingface.co/guoyww/animatediff/resolve/main/v2_lora_PanLeft.ckpt -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/',
|
| 23 |
+
'wget -c https://huggingface.co/guoyww/animatediff/resolve/main/v2_lora_PanRight.ckpt -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/',
|
| 24 |
+
|
| 25 |
+
'echo "Downloading BiRefNet..."',
|
| 26 |
+
'cd models && git clone https://huggingface.co/ViperYX/BiRefNet',
|
| 27 |
+
|
| 28 |
+
'echo "Done"',
|
| 29 |
+
|
| 30 |
+
'python main.py --listen 0.0.0.0 --port 7860 --output-directory ${USE_PERSISTENT_DATA:+/data/}'
|
| 31 |
+
]
|
| 32 |
+
|
| 33 |
+
for cmd in commands:
|
| 34 |
+
os.system(cmd)
|