Spaces:
Running
on
Zero
Running
on
Zero
Update hf_gradio_app.py
Browse files- hf_gradio_app.py +2 -2
hf_gradio_app.py
CHANGED
@@ -78,7 +78,7 @@ def process_audio(file_path, temp_dir):
|
|
78 |
audio = AudioSegment.from_file(file_path)
|
79 |
|
80 |
# Check and cut the audio if longer than 4 seconds
|
81 |
-
max_duration =
|
82 |
if len(audio) > max_duration:
|
83 |
audio = audio[:max_duration]
|
84 |
|
@@ -193,7 +193,7 @@ def generate(input_video, input_audio, seed, progress=gr.Progress(track_tqdm=Tru
|
|
193 |
with gr.Blocks(analytics_enabled=False) as demo:
|
194 |
with gr.Column():
|
195 |
gr.Markdown("# MEMO: Memory-Guided Diffusion for Expressive Talking Video Generation")
|
196 |
-
gr.Markdown("Note: On fffiloni's shared UI, audio length is trimmed to max
|
197 |
gr.Markdown("Duplicate the space to skip the queue and enjoy full length capacity.")
|
198 |
gr.HTML("""
|
199 |
<div style="display:flex;column-gap:4px;">
|
|
|
78 |
audio = AudioSegment.from_file(file_path)
|
79 |
|
80 |
# Check and cut the audio if longer than 4 seconds
|
81 |
+
max_duration = 8 * 1000 # 4 seconds in milliseconds
|
82 |
if len(audio) > max_duration:
|
83 |
audio = audio[:max_duration]
|
84 |
|
|
|
193 |
with gr.Blocks(analytics_enabled=False) as demo:
|
194 |
with gr.Column():
|
195 |
gr.Markdown("# MEMO: Memory-Guided Diffusion for Expressive Talking Video Generation")
|
196 |
+
gr.Markdown("Note: On fffiloni's shared UI, audio length is trimmed to max 8 seconds, so everyone can get a taste without to much waiting time in queue.")
|
197 |
gr.Markdown("Duplicate the space to skip the queue and enjoy full length capacity.")
|
198 |
gr.HTML("""
|
199 |
<div style="display:flex;column-gap:4px;">
|