mrfakename commited on
Commit
ebae142
1 Parent(s): 53e5e28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -701,7 +701,8 @@ with gr.Blocks() as vote:
701
  btn = gr.Button("Synthesize", variant='primary')
702
  # model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
703
  model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=True)
704
- model2 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
 
705
  with gr.Row(visible=False) as r2:
706
  with gr.Column():
707
  with gr.Group():
@@ -716,7 +717,7 @@ with gr.Blocks() as vote:
716
  nxtroundbtn = gr.Button('Next round', visible=False)
717
  # outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
718
  outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn]
719
- btn.click(disable, outputs=[btn, abetter, bbetter]).then(synthandreturn, inputs=[text], outputs=outputs).then(enable, outputs=[btn, abetter, bbetter])
720
  nxtroundbtn.click(clear_stuff, outputs=outputs)
721
 
722
  # Allow interaction with the vote buttons only when both audio samples have finished playing
 
701
  btn = gr.Button("Synthesize", variant='primary')
702
  # model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
703
  model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=True)
704
+ #model2 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
705
+ model2 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=True)
706
  with gr.Row(visible=False) as r2:
707
  with gr.Column():
708
  with gr.Group():
 
717
  nxtroundbtn = gr.Button('Next round', visible=False)
718
  # outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
719
  outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn]
720
+ btn.click(disable, outputs=[btn, abetter, bbetter]).then(synthandreturn, inputs=[text], outputs=outputs).then(enable, outputs=[btn])
721
  nxtroundbtn.click(clear_stuff, outputs=outputs)
722
 
723
  # Allow interaction with the vote buttons only when both audio samples have finished playing