Yixuan Li commited on
Commit
f0f5a39
Β·
1 Parent(s): 0509b90

add an invisible textbox

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -149,6 +149,7 @@ You can upload your own samples, or try the quick examples provided below.
149
  ## 🎯 Quick Examples
150
  """)
151
 
 
152
  with gr.Tabs():
153
  with gr.Tab("VITS Generated Speech"):
154
  gr.Markdown("| 🎧 Audio | πŸ“ Caption |\n|:--:|:--|")
@@ -165,7 +166,7 @@ You can upload your own samples, or try the quick examples provided below.
165
  ["wav/vits/9.wav", "Several church bells ringing"],
166
  ["wav/vits/10.wav", "A telephone rings with bell sounds"]
167
  ],
168
- inputs=[input_audio, _],
169
  label="Click examples below to try!",
170
  cache_examples = False,
171
  examples_per_page = 5,
@@ -186,7 +187,7 @@ You can upload your own samples, or try the quick examples provided below.
186
  ["wav/human/9.wav", "Several church bells ringing"],
187
  ["wav/human/10.wav", "A telephone rings with bell sounds"]
188
  ],
189
- inputs=[input_audio, _],
190
  label="Click examples below to try!",
191
  cache_examples = False,
192
  examples_per_page = 5,
 
149
  ## 🎯 Quick Examples
150
  """)
151
 
152
+ display_caption = gr.Textbox(visible=False)
153
  with gr.Tabs():
154
  with gr.Tab("VITS Generated Speech"):
155
  gr.Markdown("| 🎧 Audio | πŸ“ Caption |\n|:--:|:--|")
 
166
  ["wav/vits/9.wav", "Several church bells ringing"],
167
  ["wav/vits/10.wav", "A telephone rings with bell sounds"]
168
  ],
169
+ inputs=[input_audio, display_caption],
170
  label="Click examples below to try!",
171
  cache_examples = False,
172
  examples_per_page = 5,
 
187
  ["wav/human/9.wav", "Several church bells ringing"],
188
  ["wav/human/10.wav", "A telephone rings with bell sounds"]
189
  ],
190
+ inputs=[input_audio, display_caption],
191
  label="Click examples below to try!",
192
  cache_examples = False,
193
  examples_per_page = 5,