Spaces:
Sleeping
Sleeping
Yixuan Li
commited on
Commit
·
a1e6c79
1
Parent(s):
604f7ca
revise example table
Browse files
app.py
CHANGED
|
@@ -140,7 +140,7 @@ You can upload your own samples, or try the quick examples provided below.
|
|
| 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)
|
| 145 |
|
| 146 |
gr.Markdown("""
|
|
@@ -150,6 +150,9 @@ You can upload your own samples, or try the quick examples provided below.
|
|
| 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(
|
|
@@ -166,12 +169,13 @@ You can upload your own samples, or try the quick examples provided below.
|
|
| 166 |
["wav/vits/10.wav", "A telephone rings with bell sounds"]
|
| 167 |
],
|
| 168 |
inputs=[input_audio, display_caption],
|
|
|
|
| 169 |
label="Click examples below to try!",
|
| 170 |
cache_examples = False,
|
| 171 |
-
examples_per_page =
|
| 172 |
)
|
| 173 |
|
| 174 |
-
with gr.Tab("Real
|
| 175 |
gr.Examples(
|
| 176 |
examples=[
|
| 177 |
["wav/human/1.wav", "A cat meowing and young female speaking"],
|
|
@@ -186,9 +190,10 @@ You can upload your own samples, or try the quick examples provided below.
|
|
| 186 |
["wav/human/10.wav", "A telephone rings with bell sounds"]
|
| 187 |
],
|
| 188 |
inputs=[input_audio, display_caption],
|
|
|
|
| 189 |
label="Click examples below to try!",
|
| 190 |
cache_examples = False,
|
| 191 |
-
examples_per_page =
|
| 192 |
)
|
| 193 |
|
| 194 |
|
|
|
|
| 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)
|
| 145 |
|
| 146 |
gr.Markdown("""
|
|
|
|
| 150 |
""")
|
| 151 |
|
| 152 |
display_caption = gr.Textbox(label="📝 Caption" , visible=False)
|
| 153 |
+
|
| 154 |
+
audio_out = gr.Audio(type="numpy", label="", show_label=False)
|
| 155 |
+
|
| 156 |
with gr.Tabs():
|
| 157 |
with gr.Tab("VITS Generated Speech"):
|
| 158 |
gr.Examples(
|
|
|
|
| 169 |
["wav/vits/10.wav", "A telephone rings with bell sounds"]
|
| 170 |
],
|
| 171 |
inputs=[input_audio, display_caption],
|
| 172 |
+
outputs=[audio_out, display_caption],
|
| 173 |
label="Click examples below to try!",
|
| 174 |
cache_examples = False,
|
| 175 |
+
examples_per_page = 10,
|
| 176 |
)
|
| 177 |
|
| 178 |
+
with gr.Tab("Real Human Speech"):
|
| 179 |
gr.Examples(
|
| 180 |
examples=[
|
| 181 |
["wav/human/1.wav", "A cat meowing and young female speaking"],
|
|
|
|
| 190 |
["wav/human/10.wav", "A telephone rings with bell sounds"]
|
| 191 |
],
|
| 192 |
inputs=[input_audio, display_caption],
|
| 193 |
+
outputs=[audio_out, display_caption],
|
| 194 |
label="Click examples below to try!",
|
| 195 |
cache_examples = False,
|
| 196 |
+
examples_per_page = 10,
|
| 197 |
)
|
| 198 |
|
| 199 |
|