Spaces:
Runtime error
Runtime error
Create download_models.py
Browse files- download_models.py +25 -0
download_models.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
def run_command(cmd):
|
4 |
+
print(f"🚀 Running: {cmd}")
|
5 |
+
result = subprocess.run(cmd, shell=True)
|
6 |
+
if result.returncode != 0:
|
7 |
+
print(f"❌ Failed: {cmd}")
|
8 |
+
else:
|
9 |
+
print(f"✅ Done: {cmd}")
|
10 |
+
|
11 |
+
def main():
|
12 |
+
# تثبيت huggingface_hub مع CLI
|
13 |
+
run_command("pip install 'huggingface_hub[cli]'")
|
14 |
+
|
15 |
+
# تحميل Wan2.1 I2V
|
16 |
+
run_command("huggingface-cli download Wan-AI/Wan2.1-I2V-14B-720P --local-dir ./models/Wan2.1-I2V-14B-720P")
|
17 |
+
|
18 |
+
# تحميل wav2vec2
|
19 |
+
run_command("huggingface-cli download facebook/wav2vec2-base-960h --local-dir ./models/wav2vec2-base-960h")
|
20 |
+
|
21 |
+
# تحميل FantasyTalking
|
22 |
+
run_command("huggingface-cli download acvlab/FantasyTalking fantasytalking_model.ckpt --local-dir ./models")
|
23 |
+
|
24 |
+
if __name__ == "__main__":
|
25 |
+
main()
|