vinthony commited on
Commit
44d071b
1 Parent(s): bc7c142

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -35,17 +35,15 @@ def sadtalker_demo(result_dir='./tmp/'):
35
  source_image = gr.Image(label="Source image", source="upload", type="filepath").style(height=256,width=256)
36
 
37
  with gr.Tabs(elem_id="sadtalker_driven_audio"):
38
- with gr.TabItem('Upload audio'):
39
  with gr.Column(variant='panel'):
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.Column(variant='panel'):
45
  with gr.Tabs(elem_id="sadtalker_checkbox"):
46
  with gr.TabItem('Settings'):
47
  with gr.Column(variant='panel'):
48
- is_still_mode = gr.Checkbox(label="w/ Still Mode (fewer hand motion)")
49
  enhancer = gr.Checkbox(label="w/ GFPGAN as Face enhancer")
50
  submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
51
 
@@ -73,11 +71,6 @@ def sadtalker_demo(result_dir='./tmp/'):
73
  fn=sad_talker.test,
74
  cache_examples=os.getenv('SYSTEM') == 'spaces')
75
 
76
-
77
-
78
-
79
-
80
-
81
  submit.click(
82
  fn=sad_talker.test,
83
  inputs=[source_image,
 
35
  source_image = gr.Image(label="Source image", source="upload", type="filepath").style(height=256,width=256)
36
 
37
  with gr.Tabs(elem_id="sadtalker_driven_audio"):
38
+ with gr.TabItem('Upload audio(wav only currently)'):
39
  with gr.Column(variant='panel'):
40
  driven_audio = gr.Audio(label="Input audio", source="upload", type="filepath")
 
 
41
 
42
  with gr.Column(variant='panel'):
43
  with gr.Tabs(elem_id="sadtalker_checkbox"):
44
  with gr.TabItem('Settings'):
45
  with gr.Column(variant='panel'):
46
+ is_still_mode = gr.Checkbox(label="w/ Still Mode (fewer head motion)")
47
  enhancer = gr.Checkbox(label="w/ GFPGAN as Face enhancer")
48
  submit = gr.Button('Generate', elem_id="sadtalker_generate", variant='primary')
49
 
 
71
  fn=sad_talker.test,
72
  cache_examples=os.getenv('SYSTEM') == 'spaces')
73
 
 
 
 
 
 
74
  submit.click(
75
  fn=sad_talker.test,
76
  inputs=[source_image,