Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
a629389
1
Parent(s):
9dc6708
Update app.py
Browse files
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.
|
468 |
-
with gr.
|
469 |
-
with gr.
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
with gr.
|
475 |
-
|
476 |
-
|
477 |
-
|
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 |
|