Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ from accelerate.utils import set_seed
|
|
80 |
from latentsync.whisper.audio2feature import Audio2Feature
|
81 |
|
82 |
|
83 |
-
@spaces.GPU(duration=
|
84 |
def main(video_path, audio_path, progress=gr.Progress(track_tqdm=True)):
|
85 |
"""
|
86 |
Perform lip-sync video generation using an input video and a separate audio track.
|
@@ -97,8 +97,6 @@ def main(video_path, audio_path, progress=gr.Progress(track_tqdm=True)):
|
|
97 |
Returns:
|
98 |
str: File path to the generated output video with lip synchronization applied.
|
99 |
"""
|
100 |
-
|
101 |
-
gr.Info("180 seconds will be used from your daily ZeroGPU time credits.")
|
102 |
|
103 |
inference_ckpt_path = "checkpoints/latentsync_unet.pt"
|
104 |
unet_config_path = "configs/unet/second_stage.yaml"
|
@@ -205,15 +203,6 @@ with gr.Blocks(css=css) as demo:
|
|
205 |
<a href="https://github.com/bytedance/LatentSync">
|
206 |
<img src='https://img.shields.io/badge/GitHub-Repo-blue'>
|
207 |
</a>
|
208 |
-
<a href="https://arxiv.org/abs/2412.09262">
|
209 |
-
<img src='https://img.shields.io/badge/ArXiv-Paper-red'>
|
210 |
-
</a>
|
211 |
-
<a href="https://huggingface.co/spaces/fffiloni/LatentSync?duplicate=true">
|
212 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
|
213 |
-
</a>
|
214 |
-
<a href="https://huggingface.co/fffiloni">
|
215 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
|
216 |
-
</a>
|
217 |
</div>
|
218 |
""")
|
219 |
with gr.Row():
|
|
|
80 |
from latentsync.whisper.audio2feature import Audio2Feature
|
81 |
|
82 |
|
83 |
+
@spaces.GPU(duration=800)
|
84 |
def main(video_path, audio_path, progress=gr.Progress(track_tqdm=True)):
|
85 |
"""
|
86 |
Perform lip-sync video generation using an input video and a separate audio track.
|
|
|
97 |
Returns:
|
98 |
str: File path to the generated output video with lip synchronization applied.
|
99 |
"""
|
|
|
|
|
100 |
|
101 |
inference_ckpt_path = "checkpoints/latentsync_unet.pt"
|
102 |
unet_config_path = "configs/unet/second_stage.yaml"
|
|
|
203 |
<a href="https://github.com/bytedance/LatentSync">
|
204 |
<img src='https://img.shields.io/badge/GitHub-Repo-blue'>
|
205 |
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
</div>
|
207 |
""")
|
208 |
with gr.Row():
|