Spaces:
Running
Running
try
Browse files
app.py
CHANGED
@@ -521,8 +521,8 @@ with gr.Blocks(theme='huggingface', css=css_buttons) as demo:
|
|
521 |
for voice_filename in VOICES[i:i+7]:
|
522 |
voice_filename = voice_filename[4:-4] # drop wav/ for visibility
|
523 |
button = gr.Button(voice_filename, elem_classes=["cool-button"])
|
524 |
-
button.click(fn=update_selected_voice,
|
525 |
-
inputs=[
|
526 |
outputs=[selected_voice, text_input])
|
527 |
voice_buttons.append(button)
|
528 |
generate_button.click(fn=other_tts,
|
|
|
521 |
for voice_filename in VOICES[i:i+7]:
|
522 |
voice_filename = voice_filename[4:-4] # drop wav/ for visibility
|
523 |
button = gr.Button(voice_filename, elem_classes=["cool-button"])
|
524 |
+
button.click(fn=lambda: update_selected_voice(voice_filename, text_input.value),
|
525 |
+
inputs=[],
|
526 |
outputs=[selected_voice, text_input])
|
527 |
voice_buttons.append(button)
|
528 |
generate_button.click(fn=other_tts,
|