Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,16 +1,10 @@
|
|
| 1 |
from huggingface_hub import hf_hub_download
|
| 2 |
import gradio as gr, subprocess, os
|
| 3 |
|
| 4 |
-
# Set your space repo ID and checkpoint path
|
| 5 |
-
REPO_ID = "pratikshahp/AI-Powered-Video-Generator"
|
| 6 |
-
CHECKPOINT = "Wav2Lip/checkpoints/wav2lip.pth"
|
| 7 |
|
| 8 |
# Download checkpoint once at startup
|
| 9 |
-
ckpt =
|
| 10 |
-
|
| 11 |
-
filename=CHECKPOINT,
|
| 12 |
-
repo_type="space"
|
| 13 |
-
)
|
| 14 |
|
| 15 |
def generate(script, mic_path, video_path):
|
| 16 |
if not (script and mic_path and video_path):
|
|
|
|
| 1 |
from huggingface_hub import hf_hub_download
|
| 2 |
import gradio as gr, subprocess, os
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
# Download checkpoint once at startup
|
| 6 |
+
ckpt = "Wav2Lip/checkpoints/wav2lip.pth"
|
| 7 |
+
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def generate(script, mic_path, video_path):
|
| 10 |
if not (script and mic_path and video_path):
|