Spaces:
Running
on
Zero
Running
on
Zero
Den Pavloff
commited on
Commit
·
d12d4e0
1
Parent(s):
421a1f9
demo
Browse files
app.py
CHANGED
|
@@ -171,15 +171,15 @@ with gr.Blocks(title="KaniTTS - Text to Speech", theme=gr.themes.Default()) as d
|
|
| 171 |
gr.Markdown("## 🎯 Demo Examples")
|
| 172 |
|
| 173 |
def play_demo(text):
|
| 174 |
-
return (22050, demo_examples[text])
|
| 175 |
|
| 176 |
with gr.Row():
|
| 177 |
for text in list(demo_examples.keys())[:4]:
|
| 178 |
-
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output,
|
| 179 |
|
| 180 |
with gr.Row():
|
| 181 |
for text in list(demo_examples.keys())[4:8]:
|
| 182 |
-
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output,
|
| 183 |
|
| 184 |
|
| 185 |
# # CPU validation event
|
|
|
|
| 171 |
gr.Markdown("## 🎯 Demo Examples")
|
| 172 |
|
| 173 |
def play_demo(text):
|
| 174 |
+
return (22050, demo_examples[text]), 'DEMO'
|
| 175 |
|
| 176 |
with gr.Row():
|
| 177 |
for text in list(demo_examples.keys())[:4]:
|
| 178 |
+
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output, time_report_output])
|
| 179 |
|
| 180 |
with gr.Row():
|
| 181 |
for text in list(demo_examples.keys())[4:8]:
|
| 182 |
+
gr.Button(text).click(lambda t=text: play_demo(t), outputs=[audio_output, time_report_output])
|
| 183 |
|
| 184 |
|
| 185 |
# # CPU validation event
|