Spaces:
Runtime error
Runtime error
import subprocess | |
def run_command(cmd): | |
print(f"π Running: {cmd}") | |
result = subprocess.run(cmd, shell=True) | |
if result.returncode != 0: | |
print(f"β Failed: {cmd}") | |
else: | |
print(f"β Done: {cmd}") | |
def main(): | |
run_command("pip install 'huggingface_hub[cli]'") | |
run_command("huggingface-cli download Wan-AI/Wan2.1-I2V-14B-720P --local-dir ./models/Wan2.1-I2V-14B-720P") | |
run_command("huggingface-cli download facebook/wav2vec2-base-960h --local-dir ./models/wav2vec2-base-960h") | |
run_command("huggingface-cli download acvlab/FantasyTalking fantasytalking_model.ckpt --local-dir ./models") | |
if __name__ == "__main__": | |
main() | |