hexgrad commited on
Commit
2e79a61
·
verified ·
1 Parent(s): 7a398c4

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -518,9 +518,9 @@ with gr.Blocks() as preview_tts:
518
  with gr.Row():
519
  with gr.Accordion('Feedback', open=True):
520
  new_btn = gr.Button('I prefer the new, Experimental 🧪 voice', variant='secondary')
521
- new_btn.click(new_btn)
522
  old_btn = gr.Button('I prefer the old, American Female ⭐ voice', variant='secondary')
523
- old_btn.click(old_btn)
524
  with gr.Row():
525
  sk = gr.Textbox(visible=False)
526
  text.change(lambda: os.environ['SK'], outputs=[sk])
 
518
  with gr.Row():
519
  with gr.Accordion('Feedback', open=True):
520
  new_btn = gr.Button('I prefer the new, Experimental 🧪 voice', variant='secondary')
521
+ new_btn.click(vote, inputs=[new_btn])
522
  old_btn = gr.Button('I prefer the old, American Female ⭐ voice', variant='secondary')
523
+ old_btn.click(vote, inputs=[old_btn])
524
  with gr.Row():
525
  sk = gr.Textbox(visible=False)
526
  text.change(lambda: os.environ['SK'], outputs=[sk])