Upload app.py
Browse files
app.py
CHANGED
@@ -413,7 +413,7 @@ z={
|
|
413 |
},
|
414 |
)
|
415 |
def change_language(value):
|
416 |
-
return gr.Dropdown(list(PREVIEW_CHOICES[value].items()),
|
417 |
|
418 |
USE_GPU_CHOICES = [('Auto 🔀', 'auto'), ('CPU 💬', False), ('ZeroGPU 📄', True)]
|
419 |
USE_GPU_INFOS = {
|
@@ -433,7 +433,7 @@ with gr.Blocks() as preview_tts:
|
|
433 |
with gr.Row():
|
434 |
with gr.Column():
|
435 |
text = gr.Textbox(label='Input Text', info='Generate speech for one segment of text, up to ~500 characters')
|
436 |
-
lang = gr.Radio(choices=PREVIEW_LANGUAGES.items(), value='a')
|
437 |
with gr.Row():
|
438 |
voice = gr.Dropdown(list(PREVIEW_CHOICES['a'].items()), value='af', label='Voice', info='⭐ voices are stable, 🧪 are unstable')
|
439 |
lang.change(fn=change_language, inputs=[lang], outputs=[voice])
|
|
|
413 |
},
|
414 |
)
|
415 |
def change_language(value):
|
416 |
+
return gr.Dropdown(list(PREVIEW_CHOICES[value].items()), label='Voice', info='⭐ voices are stable, 🧪 are unstable')
|
417 |
|
418 |
USE_GPU_CHOICES = [('Auto 🔀', 'auto'), ('CPU 💬', False), ('ZeroGPU 📄', True)]
|
419 |
USE_GPU_INFOS = {
|
|
|
433 |
with gr.Row():
|
434 |
with gr.Column():
|
435 |
text = gr.Textbox(label='Input Text', info='Generate speech for one segment of text, up to ~500 characters')
|
436 |
+
lang = gr.Radio(choices=PREVIEW_LANGUAGES.items(), value='a', label='Language')
|
437 |
with gr.Row():
|
438 |
voice = gr.Dropdown(list(PREVIEW_CHOICES['a'].items()), value='af', label='Voice', info='⭐ voices are stable, 🧪 are unstable')
|
439 |
lang.change(fn=change_language, inputs=[lang], outputs=[voice])
|