Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ import subprocess
|
|
| 9 |
CONFIG_PATH = Path("configs/unet/second_stage.yaml")
|
| 10 |
CHECKPOINT_PATH = Path("checkpoints/latentsync_unet.pt")
|
| 11 |
|
| 12 |
-
subprocess.run(["huggingface-cli", "download", "Hyathi/LatentSync", "--local-dir", "checkpoints", "--exclude", "*.git*", "README.md"])
|
| 13 |
-
|
| 14 |
|
| 15 |
def process_video(
|
| 16 |
video_path,
|
|
|
|
| 9 |
CONFIG_PATH = Path("configs/unet/second_stage.yaml")
|
| 10 |
CHECKPOINT_PATH = Path("checkpoints/latentsync_unet.pt")
|
| 11 |
|
| 12 |
+
# subprocess.run(["huggingface-cli", "download", "Hyathi/LatentSync", "--local-dir", "checkpoints", "--exclude", "*.git*", "README.md"])
|
| 13 |
+
subprocess.run(["huggingface-cli", "download", "Hyathi/LatentSync", "--local-dir", "checkpoints", "--exclude", "*.git*", "README.md", "--token", os.environ["HF_TOKEN"]])
|
| 14 |
|
| 15 |
def process_video(
|
| 16 |
video_path,
|