Spaces:
Running
on
Zero
Running
on
Zero
mrfakename
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -218,19 +218,19 @@ with gr.Blocks() as vote:
|
|
218 |
|
219 |
with gr.Row():
|
220 |
abetter = gr.Button("A is Better", variant='primary', scale=4)
|
221 |
-
skipbtn = gr.Button("Skip", scale=1)
|
222 |
bbetter = gr.Button("B is Better", variant='primary', scale=4)
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
outputs = [aud1, aud2, model1, model2, prevmodel1, prevmodel2]
|
228 |
abetter.click(a_is_better, outputs=outputs, inputs=[model1, model2])
|
229 |
bbetter.click(b_is_better, outputs=outputs, inputs=[model1, model2])
|
230 |
skipbtn.click(b_is_better, outputs=outputs, inputs=[model1, model2])
|
231 |
|
232 |
-
|
233 |
-
|
234 |
|
235 |
vote.load(reload, outputs=[aud1, aud2, model1, model2])
|
236 |
with gr.Blocks() as about:
|
|
|
218 |
|
219 |
with gr.Row():
|
220 |
abetter = gr.Button("A is Better", variant='primary', scale=4)
|
221 |
+
# skipbtn = gr.Button("Skip", scale=1)
|
222 |
bbetter = gr.Button("B is Better", variant='primary', scale=4)
|
223 |
+
with gr.Row():
|
224 |
+
bothbad = gr.Button("Both are Bad", scale=2)
|
225 |
+
skipbtn = gr.Button("Skip", scale=1)
|
226 |
+
bothgood = gr.Button("Both are Good", scale=2)
|
227 |
outputs = [aud1, aud2, model1, model2, prevmodel1, prevmodel2]
|
228 |
abetter.click(a_is_better, outputs=outputs, inputs=[model1, model2])
|
229 |
bbetter.click(b_is_better, outputs=outputs, inputs=[model1, model2])
|
230 |
skipbtn.click(b_is_better, outputs=outputs, inputs=[model1, model2])
|
231 |
|
232 |
+
bothbad.click(both_bad, outputs=outputs, inputs=[model1, model2])
|
233 |
+
bothgood.click(both_good, outputs=outputs, inputs=[model1, model2])
|
234 |
|
235 |
vote.load(reload, outputs=[aud1, aud2, model1, model2])
|
236 |
with gr.Blocks() as about:
|