mrfakename commited on
Commit
a629389
1 Parent(s): 9dc6708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -464,18 +464,17 @@ with gr.Blocks() as vote:
464
  btn = gr.Button("Synthesize", variant='primary')
465
  model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
466
  model2 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
467
- with gr.Group(visible=False) as r2:
468
- with gr.Row():
469
- with gr.Column():
470
- with gr.Group():
471
- prevmodel1 = gr.Textbox(interactive=False, show_label=False, container=False, value="Vote to reveal model A", text_align="center", lines=1, max_lines=1)
472
- aud1 = gr.Audio(interactive=False, show_label=False, show_download_button=False, show_share_button=False, waveform_options={'waveform_progress_color': '#3C82F6'})
473
- abetter = gr.Button("A is better")
474
- with gr.Column():
475
- with gr.Group():
476
- prevmodel2 = gr.Textbox(interactive=False, show_label=False, container=False, value="Vote to reveal model B", text_align="center", lines=1, max_lines=1)
477
- aud2 = gr.Audio(interactive=False, show_label=False, show_download_button=False, show_share_button=False, waveform_options={'waveform_progress_color': '#3C82F6'})
478
- bbetter = gr.Button("B is better")
479
  outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
480
  btn.click(synthandreturn, inputs=[text], outputs=outputs)
481
 
 
464
  btn = gr.Button("Synthesize", variant='primary')
465
  model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
466
  model2 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
467
+ with gr.Row(visible=False) as r2:
468
+ with gr.Column():
469
+ with gr.Group():
470
+ prevmodel1 = gr.Textbox(interactive=False, show_label=False, container=False, value="Vote to reveal model A", text_align="center", lines=1, max_lines=1)
471
+ aud1 = gr.Audio(interactive=False, show_label=False, show_download_button=False, show_share_button=False, waveform_options={'waveform_progress_color': '#3C82F6'})
472
+ abetter = gr.Button("A is better")
473
+ with gr.Column():
474
+ with gr.Group():
475
+ prevmodel2 = gr.Textbox(interactive=False, show_label=False, container=False, value="Vote to reveal model B", text_align="center", lines=1, max_lines=1)
476
+ aud2 = gr.Audio(interactive=False, show_label=False, show_download_button=False, show_share_button=False, waveform_options={'waveform_progress_color': '#3C82F6'})
477
+ bbetter = gr.Button("B is better")
 
478
  outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
479
  btn.click(synthandreturn, inputs=[text], outputs=outputs)
480