Spaces:
Running
on
L4
Running
on
L4
SadTalker
#28
by
huggcc
- opened
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 😭
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.23.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
app.py
CHANGED
@@ -50,12 +50,12 @@ def sadtalker_demo():
|
|
50 |
<br/><b>Alternatively, try our GitHub <a href=https://github.com/Winfredy/SadTalker> code </a> on your own GPU. </b> <a style='display:inline-block' href="https://github.com/Winfredy/SadTalker"><img src="https://img.shields.io/github/stars/Winfredy/SadTalker?style=social"/></a> \
|
51 |
""")
|
52 |
|
53 |
-
with gr.Row()
|
54 |
with gr.Column(variant='panel'):
|
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", source="upload", type="filepath", elem_id="img2img_image")
|
59 |
|
60 |
|
61 |
with gr.Tabs(elem_id="sadtalker_driven_audio"):
|
@@ -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")
|
76 |
|
77 |
with gr.Column():
|
78 |
use_ref_video = gr.Checkbox(label="Use Reference Video")
|
@@ -108,7 +108,7 @@ def sadtalker_demo():
|
|
108 |
submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
|
109 |
|
110 |
with gr.Tabs(elem_id="sadtalker_genearted"):
|
111 |
-
gen_video = gr.Video(label="Generated video", format="mp4"
|
112 |
|
113 |
|
114 |
|
|
|
50 |
<br/><b>Alternatively, try our GitHub <a href=https://github.com/Winfredy/SadTalker> code </a> on your own GPU. </b> <a style='display:inline-block' href="https://github.com/Winfredy/SadTalker"><img src="https://img.shields.io/github/stars/Winfredy/SadTalker?style=social"/></a> \
|
51 |
""")
|
52 |
|
53 |
+
with gr.Row().style(equal_height=False):
|
54 |
with gr.Column(variant='panel'):
|
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", source="upload", type="filepath", elem_id="img2img_image").style(width=512)
|
59 |
|
60 |
|
61 |
with gr.Tabs(elem_id="sadtalker_driven_audio"):
|
|
|
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")
|
|
|
108 |
submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
|
109 |
|
110 |
with gr.Tabs(elem_id="sadtalker_genearted"):
|
111 |
+
gen_video = gr.Video(label="Generated video", format="mp4").style(width=256)
|
112 |
|
113 |
|
114 |
|