Upload app.py
Browse files
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])
|