Yixuan Li commited on
Commit
604f7ca
·
1 Parent(s): f0f5a39

revise example header

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -138,7 +138,7 @@ You can upload your own samples, or try the quick examples provided below.
138
  """)
139
 
140
  with gr.Column():
141
- input_audio = gr.Audio(label="Speech Input", type="filepath")
142
  btn = gr.Button("🎵Generate Audio!", variant="primary")
143
  output_audio = gr.Audio(label="Generated Audio", type="filepath")
144
  btn.click(fn=infer, inputs=input_audio, outputs=output_audio)
@@ -149,10 +149,9 @@ You can upload your own samples, or try the quick examples provided below.
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|:--:|:--|")
156
  gr.Examples(
157
  examples=[
158
  ["wav/vits/1.wav", "A cat meowing and young female speaking"],
@@ -173,7 +172,6 @@ You can upload your own samples, or try the quick examples provided below.
173
  )
174
 
175
  with gr.Tab("Real human Speech"):
176
- gr.Markdown("| 🎧 Audio | 📝 Caption |\n|:--:|:--|")
177
  gr.Examples(
178
  examples=[
179
  ["wav/human/1.wav", "A cat meowing and young female speaking"],
 
138
  """)
139
 
140
  with gr.Column():
141
+ input_audio = gr.Audio(label="🗣️ Speech Input", type="filepath")
142
  btn = gr.Button("🎵Generate Audio!", variant="primary")
143
  output_audio = gr.Audio(label="Generated Audio", type="filepath")
144
  btn.click(fn=infer, inputs=input_audio, outputs=output_audio)
 
149
  ## 🎯 Quick Examples
150
  """)
151
 
152
+ display_caption = gr.Textbox(label="📝 Caption" , visible=False)
153
  with gr.Tabs():
154
  with gr.Tab("VITS Generated Speech"):
 
155
  gr.Examples(
156
  examples=[
157
  ["wav/vits/1.wav", "A cat meowing and young female speaking"],
 
172
  )
173
 
174
  with gr.Tab("Real human Speech"):
 
175
  gr.Examples(
176
  examples=[
177
  ["wav/human/1.wav", "A cat meowing and young female speaking"],