jojortz commited on
Commit
626460e
1 Parent(s): f0279d9

clear output on extract_button click

Browse files
Files changed (1) hide show
  1. tabs/arena_sxs.py +4 -4
tabs/arena_sxs.py CHANGED
@@ -97,10 +97,10 @@ def arena_sxs():
97
  outputs=[output_a, output_b]
98
  )
99
 
100
- # extract_button.click(
101
- # fn=clear_outputs,
102
- # outputs=[output_a, output_b]
103
- # )
104
 
105
  # vote_model_a_button.click(fn=lambda model_a, model_b: vote_for_model(model_a, Vote.GOOD, model_b, Vote.NEUTRAL), inputs=[model_a, model_b], outputs=[output_a, output_b])
106
  # vote_model_b_button.click(fn=lambda model_a, model_b: vote_for_model(model_a, Vote.NEUTRAL, model_b, Vote.GOOD), inputs=[model_a, model_b], outputs=[output_a, output_b])
 
97
  outputs=[output_a, output_b]
98
  )
99
 
100
+ extract_button.click(
101
+ fn=clear_outputs,
102
+ outputs=[output_a, output_b]
103
+ )
104
 
105
  # vote_model_a_button.click(fn=lambda model_a, model_b: vote_for_model(model_a, Vote.GOOD, model_b, Vote.NEUTRAL), inputs=[model_a, model_b], outputs=[output_a, output_b])
106
  # vote_model_b_button.click(fn=lambda model_a, model_b: vote_for_model(model_a, Vote.NEUTRAL, model_b, Vote.GOOD), inputs=[model_a, model_b], outputs=[output_a, output_b])