Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -40,20 +40,6 @@ def sadtalker_demo(result_dir='./tmp/'):
|
|
40 |
driven_audio = gr.Audio(label="Input audio", source="upload", type="filepath")
|
41 |
# submit_audio_1 = gr.Button('Submit', variant='primary')
|
42 |
# submit_audio_1.click(fn=get_driven_audio, inputs=input_audio1, outputs=driven_audio)
|
43 |
-
|
44 |
-
|
45 |
-
with gr.Column(variant='panel'):
|
46 |
-
with gr.Tabs(elem_id="sadtalker_checkbox"):
|
47 |
-
with gr.TabItem('Settings'):
|
48 |
-
with gr.Column(variant='panel'):
|
49 |
-
is_still_mode = gr.Checkbox(label="w/ Still Mode (fewer hand motion)")
|
50 |
-
enhancer = gr.Checkbox(label="w/ GFPGAN as Face enhancer")
|
51 |
-
submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
|
52 |
-
|
53 |
-
with gr.Tabs(elem_id="sadtalker_genearted"):
|
54 |
-
gen_video = gr.Video(label="Generated video", format="mp4").style(height=256,width=256)
|
55 |
-
gen_text = gr.Textbox(visible=False)
|
56 |
-
|
57 |
|
58 |
with gr.Row():
|
59 |
examples = [
|
@@ -75,6 +61,21 @@ def sadtalker_demo(result_dir='./tmp/'):
|
|
75 |
fn=sad_talker.test,
|
76 |
cache_examples=os.getenv('SYSTEM') == 'spaces')
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
submit.click(
|
79 |
fn=sad_talker.test,
|
80 |
inputs=[source_image,
|
|
|
40 |
driven_audio = gr.Audio(label="Input audio", source="upload", type="filepath")
|
41 |
# submit_audio_1 = gr.Button('Submit', variant='primary')
|
42 |
# submit_audio_1.click(fn=get_driven_audio, inputs=input_audio1, outputs=driven_audio)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
with gr.Row():
|
45 |
examples = [
|
|
|
61 |
fn=sad_talker.test,
|
62 |
cache_examples=os.getenv('SYSTEM') == 'spaces')
|
63 |
|
64 |
+
with gr.Column(variant='panel'):
|
65 |
+
with gr.Tabs(elem_id="sadtalker_checkbox"):
|
66 |
+
with gr.TabItem('Settings'):
|
67 |
+
with gr.Column(variant='panel'):
|
68 |
+
is_still_mode = gr.Checkbox(label="w/ Still Mode (fewer hand motion)")
|
69 |
+
enhancer = gr.Checkbox(label="w/ GFPGAN as Face enhancer")
|
70 |
+
submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
|
71 |
+
|
72 |
+
with gr.Tabs(elem_id="sadtalker_genearted"):
|
73 |
+
gen_video = gr.Video(label="Generated video", format="mp4").style(height=256,width=256)
|
74 |
+
gen_text = gr.Textbox(visible=False)
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
submit.click(
|
80 |
fn=sad_talker.test,
|
81 |
inputs=[source_image,
|