Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def sadtalker_demo():
|
|
55 |
with gr.Tabs(elem_id="sadtalker_source_image"):
|
56 |
with gr.TabItem('Source image'):
|
57 |
with gr.Row():
|
58 |
-
source_image = gr.Image(label="Source image",
|
59 |
|
60 |
|
61 |
with gr.Tabs(elem_id="sadtalker_driven_audio"):
|
@@ -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",
|
67 |
-
driven_audio_no = gr.Audio(label="Use IDLE mode, no audio is required",
|
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",
|
76 |
|
77 |
with gr.Column():
|
78 |
use_ref_video = gr.Checkbox(label="Use Reference Video")
|
|
|
55 |
with gr.Tabs(elem_id="sadtalker_source_image"):
|
56 |
with gr.TabItem('Source image'):
|
57 |
with gr.Row():
|
58 |
+
source_image = gr.Image(label="Source image", type="filepath", elem_id="img2img_image")
|
59 |
|
60 |
|
61 |
with gr.Tabs(elem_id="sadtalker_driven_audio"):
|
|
|
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", type="filepath")
|
67 |
+
driven_audio_no = gr.Audio(label="Use IDLE mode, no audio is required", 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", type="filepath", elem_id="vidref")
|
76 |
|
77 |
with gr.Column():
|
78 |
use_ref_video = gr.Checkbox(label="Use Reference Video")
|