Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import tempfile
|
3 |
import uuid
|
@@ -116,9 +117,9 @@ with gr.Blocks(title="KittenTTS - Text to Speech", theme=gr.themes.Soft()) as ap
|
|
116 |
gr.Markdown("## 📝 Example Texts")
|
117 |
gr.Examples(
|
118 |
examples=[
|
119 |
-
["Hello! This is a test of the KittenTTS model.", available_voices[0], 1
|
120 |
-
["The quick brown fox jumps over the lazy dog.", available_voices[0], 1.
|
121 |
-
["Welcome to the world of high-quality text-to-speech synthesis!", available_voices[0], 1.
|
122 |
],
|
123 |
inputs=[text_input, voice_dropdown, speed_slider],
|
124 |
outputs=[audio_output],
|
|
|
1 |
+
#copied from https://huggingface.co/spaces/KingNish/Kitten-TTS & Modified to handle large text input.
|
2 |
import gradio as gr
|
3 |
import tempfile
|
4 |
import uuid
|
|
|
117 |
gr.Markdown("## 📝 Example Texts")
|
118 |
gr.Examples(
|
119 |
examples=[
|
120 |
+
["Hello! This is a test of the KittenTTS model.", available_voices[0], 1],
|
121 |
+
["The quick brown fox jumps over the lazy dog.", available_voices[0], 1.25],
|
122 |
+
["Welcome to the world of high-quality text-to-speech synthesis!", available_voices[0], 1.5],
|
123 |
],
|
124 |
inputs=[text_input, voice_dropdown, speed_slider],
|
125 |
outputs=[audio_output],
|