John6666 commited on
Commit
3019dc9
·
verified ·
1 Parent(s): a17c760

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
33
  <a style='font-size:18px;color: #efefef' href='https://github.com/Winfredy/SadTalker'> Github </div>")
34
 
35
- with gr.Row().style(equal_height=False):
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", source="upload", type="filepath", elem_id="img2img_image").style(width=512)
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", source="upload", type="filepath")
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").style(width=256)
72
 
73
  if warpfn:
74
  submit.click(
 
32
  <a style='font-size:18px;color: #efefef' href='https://sadtalker.github.io'>Homepage</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
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(