Spaces:
Sleeping
Sleeping
Commit
·
55f2e5a
1
Parent(s):
5c78d8b
Add subprocess call to download LatentSync model from Hugging Face
Browse files
app.py
CHANGED
@@ -4,10 +4,13 @@ from scripts.inference import main
|
|
4 |
from omegaconf import OmegaConf
|
5 |
import argparse
|
6 |
from datetime import datetime
|
|
|
7 |
|
8 |
CONFIG_PATH = Path("configs/unet/second_stage.yaml")
|
9 |
CHECKPOINT_PATH = Path("checkpoints/latentsync_unet.pt")
|
10 |
|
|
|
|
|
11 |
|
12 |
def process_video(
|
13 |
video_path,
|
|
|
4 |
from omegaconf import OmegaConf
|
5 |
import argparse
|
6 |
from datetime import datetime
|
7 |
+
import subprocess
|
8 |
|
9 |
CONFIG_PATH = Path("configs/unet/second_stage.yaml")
|
10 |
CHECKPOINT_PATH = Path("checkpoints/latentsync_unet.pt")
|
11 |
|
12 |
+
subprocess.run(["huggingface-cli", "download", "chunyu-li/LatentSync", "--local-dir", "checkpoints", "--exclude", "*.git*", "README.md"])
|
13 |
+
|
14 |
|
15 |
def process_video(
|
16 |
video_path,
|