Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -712,7 +712,7 @@ with gr.Blocks() as vote:
|
|
712 |
nxtroundbtn = gr.Button('Next round', visible=False)
|
713 |
# outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
|
714 |
outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn]
|
715 |
-
btn.click(disable, outputs=[btn, abetter, bbetter]).then(synthandreturn, inputs=[text], outputs=outputs).then(enable, outputs=[btn])
|
716 |
nxtroundbtn.click(clear_stuff, outputs=outputs)
|
717 |
|
718 |
# Allow interaction with the vote buttons only when both audio samples have finished playing
|
|
|
712 |
nxtroundbtn = gr.Button('Next round', visible=False)
|
713 |
# outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
|
714 |
outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn]
|
715 |
+
btn.click(disable, outputs=[btn, abetter, bbetter]).then(synthandreturn, inputs=[text], outputs=outputs).then(enable, outputs=[btn, abetter, bbetter])
|
716 |
nxtroundbtn.click(clear_stuff, outputs=outputs)
|
717 |
|
718 |
# Allow interaction with the vote buttons only when both audio samples have finished playing
|