vinthony commited on
Commit
9beb764
1 Parent(s): 56dc63d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -41,6 +41,18 @@ def sadtalker_demo(result_dir='./tmp/'):
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 = [
46
  [
@@ -61,17 +73,7 @@ def sadtalker_demo(result_dir='./tmp/'):
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
 
 
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
+
52
+ with gr.Tabs(elem_id="sadtalker_genearted"):
53
+ gen_video = gr.Video(label="Generated video", format="mp4").style(height=256,width=256)
54
+ gen_text = gr.Textbox(visible=False)
55
+
56
  with gr.Row():
57
  examples = [
58
  [
 
73
  fn=sad_talker.test,
74
  cache_examples=os.getenv('SYSTEM') == 'spaces')
75
 
76
+
 
 
 
 
 
 
 
 
 
 
77
 
78
 
79