Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mrfakename
commited on
Commit
•
5147f0b
1
Parent(s):
af37f5e
Update app.py
Browse files
app.py
CHANGED
@@ -347,7 +347,7 @@ with gr.Blocks() as leaderboard:
|
|
347 |
gr.Markdown("DISCLAIMER: The licenses listed may not be accurate or up to date, you are responsible for checking the licenses before using the models. Also note that some models may have additional usage restrictions.")
|
348 |
|
349 |
with gr.Blocks() as vote:
|
350 |
-
|
351 |
gr.Markdown(INSTR)
|
352 |
# gr.LoginButton()
|
353 |
with gr.Row():
|
@@ -382,13 +382,13 @@ with gr.Blocks() as vote:
|
|
382 |
bothbad = gr.Button("Both are Bad", scale=2)
|
383 |
skipbtn = gr.Button("Skip", scale=1)
|
384 |
bothgood = gr.Button("Both are Good", scale=2)
|
385 |
-
outputs = [aud1, aud2, model1, model2, prevmodel1, prevmodel2,
|
386 |
-
abetter.click(a_is_better, outputs=[outputs,
|
387 |
-
bbetter.click(b_is_better, outputs=[outputs,
|
388 |
-
skipbtn.click(b_is_better, outputs=[outputs,
|
389 |
|
390 |
-
bothbad.click(both_bad, outputs=outputs, inputs=[model1, model2,
|
391 |
-
bothgood.click(both_good, outputs=outputs, inputs=[model1, model2,
|
392 |
|
393 |
vote.load(reload, outputs=[aud1, aud2, model1, model2])
|
394 |
with gr.Blocks() as about:
|
|
|
347 |
gr.Markdown("DISCLAIMER: The licenses listed may not be accurate or up to date, you are responsible for checking the licenses before using the models. Also note that some models may have additional usage restrictions.")
|
348 |
|
349 |
with gr.Blocks() as vote:
|
350 |
+
useridstate = gr.State()
|
351 |
gr.Markdown(INSTR)
|
352 |
# gr.LoginButton()
|
353 |
with gr.Row():
|
|
|
382 |
bothbad = gr.Button("Both are Bad", scale=2)
|
383 |
skipbtn = gr.Button("Skip", scale=1)
|
384 |
bothgood = gr.Button("Both are Good", scale=2)
|
385 |
+
outputs = [aud1, aud2, model1, model2, prevmodel1, prevmodel2, useridstate]
|
386 |
+
abetter.click(a_is_better, outputs=[outputs, useridstate], inputs=[model1, model2, useridstate])
|
387 |
+
bbetter.click(b_is_better, outputs=[outputs, useridstate], inputs=[model1, model2, useridstate])
|
388 |
+
skipbtn.click(b_is_better, outputs=[outputs, useridstate], inputs=[model1, model2, useridstate])
|
389 |
|
390 |
+
bothbad.click(both_bad, outputs=outputs, inputs=[model1, model2, useridstate])
|
391 |
+
bothgood.click(both_good, outputs=outputs, inputs=[model1, model2, useridstate])
|
392 |
|
393 |
vote.load(reload, outputs=[aud1, aud2, model1, model2])
|
394 |
with gr.Blocks() as about:
|