Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,17 +32,17 @@ def sadtalker_demo(checkpoint_path='checkpoints', config_path='src/config', warp
|
|
32 |
<a style='font-size:18px;color: #efefef' href='https://sadtalker.github.io'>Homepage</a> \
|
33 |
<a style='font-size:18px;color: #efefef' href='https://github.com/Winfredy/SadTalker'> Github </div>")
|
34 |
|
35 |
-
with gr.Row()
|
36 |
with gr.Column(variant='panel'):
|
37 |
with gr.Tabs(elem_id="sadtalker_source_image"):
|
38 |
with gr.TabItem('Upload image'):
|
39 |
with gr.Row():
|
40 |
-
source_image = gr.Image(label="Source image",
|
41 |
|
42 |
with gr.Tabs(elem_id="sadtalker_driven_audio"):
|
43 |
with gr.TabItem('Upload OR TTS'):
|
44 |
with gr.Column(variant='panel'):
|
45 |
-
driven_audio = gr.Audio(label="Input audio",
|
46 |
|
47 |
if sys.platform != 'win32' and not in_webui:
|
48 |
from src.utils.text2speech import TTSTalker
|
@@ -68,7 +68,7 @@ def sadtalker_demo(checkpoint_path='checkpoints', config_path='src/config', warp
|
|
68 |
submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
|
69 |
|
70 |
with gr.Tabs(elem_id="sadtalker_genearted"):
|
71 |
-
gen_video = gr.Video(label="Generated video", format="mp4")
|
72 |
|
73 |
if warpfn:
|
74 |
submit.click(
|
|
|
32 |
<a style='font-size:18px;color: #efefef' href='https://sadtalker.github.io'>Homepage</a> \
|
33 |
<a style='font-size:18px;color: #efefef' href='https://github.com/Winfredy/SadTalker'> Github </div>")
|
34 |
|
35 |
+
with gr.Row()
|
36 |
with gr.Column(variant='panel'):
|
37 |
with gr.Tabs(elem_id="sadtalker_source_image"):
|
38 |
with gr.TabItem('Upload image'):
|
39 |
with gr.Row():
|
40 |
+
source_image = gr.Image(label="Source image", type="filepath", elem_id="img2img_image")
|
41 |
|
42 |
with gr.Tabs(elem_id="sadtalker_driven_audio"):
|
43 |
with gr.TabItem('Upload OR TTS'):
|
44 |
with gr.Column(variant='panel'):
|
45 |
+
driven_audio = gr.Audio(label="Input audio", type="filepath")
|
46 |
|
47 |
if sys.platform != 'win32' and not in_webui:
|
48 |
from src.utils.text2speech import TTSTalker
|
|
|
68 |
submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
|
69 |
|
70 |
with gr.Tabs(elem_id="sadtalker_genearted"):
|
71 |
+
gen_video = gr.Video(label="Generated video", format="mp4")
|
72 |
|
73 |
if warpfn:
|
74 |
submit.click(
|