Dionyssos commited on
Commit
0adf4ba
·
1 Parent(s): 3906da9
Files changed (1) hide show
  1. app.py +2 -2
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=[gr.Textbox(value=voice_filename, visible=False), text_input],
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,