SetuG commited on
Commit
02b1210
·
verified ·
1 Parent(s): 017f823

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -63,8 +63,8 @@ def sadtalker_demo():
63
  gr.Markdown("Possible driving combinations: <br> 1. Audio only 2. Audio/IDLE Mode + Ref Video(pose, blink, pose+blink) 3. IDLE Mode only 4. Ref Video only (all) ")
64
 
65
  with gr.Row():
66
- driven_audio = gr.Audio(label="Input audio", source="upload", type="filepath", max_length=180) # 180s
67
- driven_audio_no = gr.Audio(label="Use IDLE mode, no audio is required", source="upload", type="filepath", visible=False)
68
 
69
  with gr.Column():
70
  use_idle_mode = gr.Checkbox(label="Use Idle Animation")
@@ -72,7 +72,7 @@ def sadtalker_demo():
72
  use_idle_mode.change(toggle_audio_file, inputs=use_idle_mode, outputs=[driven_audio, driven_audio_no]) # todo
73
 
74
  with gr.Row():
75
- ref_video = gr.Video(label="Reference Video", source="upload", type="filepath", elem_id="vidref") # .style(width=512)
76
 
77
  with gr.Column():
78
  use_ref_video = gr.Checkbox(label="Use Reference Video")
@@ -220,4 +220,3 @@ if __name__ == "__main__":
220
  demo.queue(max_size=10, api_open=True)
221
  demo.launch(debug=True)
222
 
223
-
 
63
  gr.Markdown("Possible driving combinations: <br> 1. Audio only 2. Audio/IDLE Mode + Ref Video(pose, blink, pose+blink) 3. IDLE Mode only 4. Ref Video only (all) ")
64
 
65
  with gr.Row():
66
+ driven_audio = gr.Audio(label="Input audio", sources=["upload"], type="filepath")
67
+ driven_audio_no = gr.Audio(label="Use IDLE mode, no audio is required", sources=["upload"], type="filepath", visible=False)
68
 
69
  with gr.Column():
70
  use_idle_mode = gr.Checkbox(label="Use Idle Animation")
 
72
  use_idle_mode.change(toggle_audio_file, inputs=use_idle_mode, outputs=[driven_audio, driven_audio_no]) # todo
73
 
74
  with gr.Row():
75
+ ref_video = gr.Video(label="Reference Video", sources=["upload"], type="filepath", elem_id="vidref") # .style(width=512)
76
 
77
  with gr.Column():
78
  use_ref_video = gr.Checkbox(label="Use Reference Video")
 
220
  demo.queue(max_size=10, api_open=True)
221
  demo.launch(debug=True)
222