Spaces:
Running
on
Zero
Running
on
Zero
SunderAli17
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ snapshot_download(
|
|
18 |
)
|
19 |
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
21 |
|
22 |
if torch.cuda.is_available():
|
23 |
torch_dtype = torch.float16
|
@@ -182,26 +183,18 @@ div#col-container{
|
|
182 |
max-width: 982px;
|
183 |
}
|
184 |
"""
|
185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
with gr.Column(elem_id="col-container"):
|
187 |
gr.Markdown("# LatentSync: Audio Conditioned Latent Diffusion Models for Lip Sync")
|
188 |
gr.Markdown("LatentSync, an end-to-end lip sync framework based on audio conditioned latent diffusion models without any intermediate motion representation, diverging from previous diffusion-based lip sync methods based on pixel space diffusion or two-stage generation.")
|
189 |
-
gr.
|
190 |
-
<div style="display:flex;column-gap:4px;">
|
191 |
-
<a href="https://github.com/bytedance/LatentSync">
|
192 |
-
<img src='https://img.shields.io/badge/GitHub-Repo-blue'>
|
193 |
-
</a>
|
194 |
-
<a href="https://arxiv.org/abs/2412.09262">
|
195 |
-
<img src='https://img.shields.io/badge/ArXiv-Paper-red'>
|
196 |
-
</a>
|
197 |
-
<a href="https://huggingface.co/spaces/fffiloni/LatentSync?duplicate=true">
|
198 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
|
199 |
-
</a>
|
200 |
-
<a href="https://huggingface.co/fffiloni">
|
201 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
|
202 |
-
</a>
|
203 |
-
</div>
|
204 |
-
""")
|
205 |
with gr.Row():
|
206 |
with gr.Column():
|
207 |
video_input = gr.Video(label="Video Control", format="mp4")
|
|
|
18 |
)
|
19 |
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
21 |
+
torch.set_grad_enabled(False)
|
22 |
|
23 |
if torch.cuda.is_available():
|
24 |
torch_dtype = torch.float16
|
|
|
183 |
max-width: 982px;
|
184 |
}
|
185 |
"""
|
186 |
+
|
187 |
+
theme = gr.themes.Soft(
|
188 |
+
primary_hue="blue",
|
189 |
+
secondary_hue="purple",
|
190 |
+
font=[gr.themes.GoogleFont('Source Code Pro'), gr.themes.GoogleFont('Public Sans'), 'system-ui', 'sans-serif'],
|
191 |
+
)
|
192 |
+
|
193 |
+
with gr.Blocks(theme = "Yntec/HaleyCH_Theme_Orange") as demo:
|
194 |
with gr.Column(elem_id="col-container"):
|
195 |
gr.Markdown("# LatentSync: Audio Conditioned Latent Diffusion Models for Lip Sync")
|
196 |
gr.Markdown("LatentSync, an end-to-end lip sync framework based on audio conditioned latent diffusion models without any intermediate motion representation, diverging from previous diffusion-based lip sync methods based on pixel space diffusion or two-stage generation.")
|
197 |
+
gr.Markdown("**Demo by [Sunder Ali Khowaja](https://sander-ali.github.io) - [X](https://x.com/SunderAKhowaja) -[Github](https://github.com/sander-ali) -[Hugging Face](https://huggingface.co/SunderAli17)**")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
with gr.Row():
|
199 |
with gr.Column():
|
200 |
video_input = gr.Video(label="Video Control", format="mp4")
|