Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def setup_wav2lip():
|
|
| 103 |
checkpoint_dir = "Wav2Lip/checkpoints"
|
| 104 |
os.makedirs(checkpoint_dir, exist_ok=True)
|
| 105 |
wav2lip_checkpoint_path = os.path.join(checkpoint_dir, "wav2lip_gan.pth")
|
| 106 |
-
wav2lip_url = "https://huggingface.co/
|
| 107 |
|
| 108 |
try:
|
| 109 |
if not os.path.exists(wav2lip_checkpoint_path) or os.path.getsize(wav2lip_checkpoint_path) < 1000000:
|
|
@@ -117,7 +117,7 @@ def setup_wav2lip():
|
|
| 117 |
sfd_dir = "Wav2Lip/face_detection/detection/sfd"
|
| 118 |
os.makedirs(sfd_dir, exist_ok=True)
|
| 119 |
s3fd_checkpoint_path = os.path.join(sfd_dir, "s3fd.pth")
|
| 120 |
-
s3fd_url = "https://
|
| 121 |
|
| 122 |
try:
|
| 123 |
if not os.path.exists(s3fd_checkpoint_path) or os.path.getsize(s3fd_checkpoint_path) < 1000000:
|
|
|
|
| 103 |
checkpoint_dir = "Wav2Lip/checkpoints"
|
| 104 |
os.makedirs(checkpoint_dir, exist_ok=True)
|
| 105 |
wav2lip_checkpoint_path = os.path.join(checkpoint_dir, "wav2lip_gan.pth")
|
| 106 |
+
wav2lip_url = "https://huggingface.co/Nekochu/Wav2Lip/resolve/main/wav2lip_gan.pth"
|
| 107 |
|
| 108 |
try:
|
| 109 |
if not os.path.exists(wav2lip_checkpoint_path) or os.path.getsize(wav2lip_checkpoint_path) < 1000000:
|
|
|
|
| 117 |
sfd_dir = "Wav2Lip/face_detection/detection/sfd"
|
| 118 |
os.makedirs(sfd_dir, exist_ok=True)
|
| 119 |
s3fd_checkpoint_path = os.path.join(sfd_dir, "s3fd.pth")
|
| 120 |
+
s3fd_url = "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
|
| 121 |
|
| 122 |
try:
|
| 123 |
if not os.path.exists(s3fd_checkpoint_path) or os.path.getsize(s3fd_checkpoint_path) < 1000000:
|