mrfakename commited on
Commit
20db367
1 Parent(s): 5147f0b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -383,9 +383,9 @@ with gr.Blocks() as vote:
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])
 
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, inputs=[model1, model2, useridstate])
387
+ bbetter.click(b_is_better, outputs=outputs, inputs=[model1, model2, useridstate])
388
+ skipbtn.click(b_is_better, outputs=outputs, 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])