fffiloni commited on
Commit
78270b1
·
verified ·
1 Parent(s): 2eced4f

load example properly

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -241,6 +241,7 @@ def load_prerendered_examples(prompt, cond_image_path, cond_audio_path_spk1, con
241
 
242
  with gr.Blocks(title="MultiTalk Inference") as demo:
243
  gr.Markdown("## 🎤 Meigen MultiTalk Inference Demo")
 
244
  if is_shared_ui:
245
  gr.Markdown("Audio will be trimmed to max 5 seconds on fffiloni's shared UI. Duplicate to skip the queue and work with longer audio inference. ")
246
  gr.HTML("""
@@ -292,18 +293,14 @@ with gr.Blocks(title="MultiTalk Inference") as demo:
292
  submit_btn = gr.Button("Generate")
293
 
294
  with gr.Column(scale=3):
295
- output_video = gr.Video(label="Generated Video")
296
 
297
  gr.Examples(
298
  examples = [
299
- ["A woman sings passionately in a dimly lit studio.", "examples/single/single1.png", "examples/single/1.wav", None, 12],
300
- ["In a cozy recording studio, a man and a woman are singing together. The man, with tousled brown hair, stands to the left, wearing a light green button-down shirt. His gaze is directed towards the woman, who is smiling warmly. She, with wavy dark hair, is dressed in a black floral dress and stands to the right, her eyes closed in enjoyment. Between them is a professional microphone, capturing their harmonious voices. The background features wooden panels and various audio equipment, creating an intimate and focused atmosphere. The lighting is soft and warm, highlighting their expressions and the intimate setting. A medium shot captures their interaction closely.", "examples/multi/3/multi3.png", "examples/multi/3/1-man.WAV", "examples/multi/3/1-woman.WAV", 12],
301
  ],
302
- fn=load_prerendered_examples,
303
- inputs = [prompt_input, image_input, audio_input_spk1, audio_input_spk2, sample_steps],
304
- outputs=output_video,
305
- cache_examples = True,
306
- cache_mode = "lazy"
307
  )
308
 
309
  submit_btn.click(
@@ -312,4 +309,4 @@ with gr.Blocks(title="MultiTalk Inference") as demo:
312
  outputs=output_video
313
  )
314
 
315
- demo.queue(max_size=2).launch(ssr_mode=False, show_error=True, show_api=False)
 
241
 
242
  with gr.Blocks(title="MultiTalk Inference") as demo:
243
  gr.Markdown("## 🎤 Meigen MultiTalk Inference Demo")
244
+ gr.Markdown("Let Them Talk: Audio-Driven Multi-Person Conversational Video Generation")
245
  if is_shared_ui:
246
  gr.Markdown("Audio will be trimmed to max 5 seconds on fffiloni's shared UI. Duplicate to skip the queue and work with longer audio inference. ")
247
  gr.HTML("""
 
293
  submit_btn = gr.Button("Generate")
294
 
295
  with gr.Column(scale=3):
296
+ output_video = gr.Video(label="Generated Video", interactive=False)
297
 
298
  gr.Examples(
299
  examples = [
300
+ ["A woman sings passionately in a dimly lit studio.", "examples/single/single1.png", "examples/single/1.wav", None, 12, "examples/results/multitalk_single_example_1.mp4"],
301
+ ["In a cozy recording studio, a man and a woman are singing together. The man, with tousled brown hair, stands to the left, wearing a light green button-down shirt. His gaze is directed towards the woman, who is smiling warmly. She, with wavy dark hair, is dressed in a black floral dress and stands to the right, her eyes closed in enjoyment. Between them is a professional microphone, capturing their harmonious voices. The background features wooden panels and various audio equipment, creating an intimate and focused atmosphere. The lighting is soft and warm, highlighting their expressions and the intimate setting. A medium shot captures their interaction closely.", "examples/multi/3/multi3.png", "examples/multi/3/1-man.WAV", "examples/multi/3/1-woman.WAV", 12, "examples/results/multitalk_multi_example_2.mp4"],
302
  ],
303
+ inputs = [prompt_input, image_input, audio_input_spk1, audio_input_spk2, sample_steps, output_video],
 
 
 
 
304
  )
305
 
306
  submit_btn.click(
 
309
  outputs=output_video
310
  )
311
 
312
+ demo.queue(max_size=2).launch(ssr_mode=False, show_error=True, show_api=False)