Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -185,7 +185,7 @@ with gr.Blocks() as stream_tab:
|
|
| 185 |
BANNER_TEXT = '''
|
| 186 |
[***Kokoro*** **is an open-weight TTS model with 82 million parameters.**](https://huggingface.co/hexgrad/Kokoro-82M)
|
| 187 |
|
| 188 |
-
This demo showcases Indonesian with
|
| 189 |
'''
|
| 190 |
API_OPEN = os.getenv('SPACE_ID') != 'hexgrad/Kokoro-TTS'
|
| 191 |
API_NAME = None if API_OPEN else False
|
|
@@ -196,7 +196,7 @@ with gr.Blocks() as app:
|
|
| 196 |
with gr.Column():
|
| 197 |
text = gr.Textbox(label='Input Text', info=f"Up to ~500 characters per Generate, or {'∞' if CHAR_LIMIT is None else CHAR_LIMIT} characters per Stream")
|
| 198 |
with gr.Row():
|
| 199 |
-
voice = gr.Dropdown(list(CHOICES.items()), value='af_heart', label='
|
| 200 |
use_gpu = gr.Dropdown(
|
| 201 |
[('ZeroGPU 🚀', True), ('CPU 🐌', False)],
|
| 202 |
value=CUDA_AVAILABLE,
|
|
|
|
| 185 |
BANNER_TEXT = '''
|
| 186 |
[***Kokoro*** **is an open-weight TTS model with 82 million parameters.**](https://huggingface.co/hexgrad/Kokoro-82M)
|
| 187 |
|
| 188 |
+
This demo showcases Indonesian TTS with various accents. You can use the various languages accents
|
| 189 |
'''
|
| 190 |
API_OPEN = os.getenv('SPACE_ID') != 'hexgrad/Kokoro-TTS'
|
| 191 |
API_NAME = None if API_OPEN else False
|
|
|
|
| 196 |
with gr.Column():
|
| 197 |
text = gr.Textbox(label='Input Text', info=f"Up to ~500 characters per Generate, or {'∞' if CHAR_LIMIT is None else CHAR_LIMIT} characters per Stream")
|
| 198 |
with gr.Row():
|
| 199 |
+
voice = gr.Dropdown(list(CHOICES.items()), value='af_heart', label='Accent', info='Quality and availability vary by language')
|
| 200 |
use_gpu = gr.Dropdown(
|
| 201 |
[('ZeroGPU 🚀', True), ('CPU 🐌', False)],
|
| 202 |
value=CUDA_AVAILABLE,
|