Spaces:
AIR-Bench
/
Running on CPU Upgrade

nan commited on
Commit
fd21bf9
1 Parent(s): 9b59e47

feat: implement the no reranking button

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -280,6 +280,11 @@ with demo:
280
  elem_id="reranking-select-long-doc",
281
  interactive=True
282
  )
 
 
 
 
 
283
  with gr.Column(min_width=320):
284
  # select the metric
285
  with gr.Row():
@@ -403,6 +408,11 @@ with demo:
403
  queue=True
404
  )
405
 
 
 
 
 
 
406
  with gr.TabItem("🚀Submit here!", elem_id="submit-tab-table", id=2):
407
  with gr.Column():
408
  with gr.Row():
 
280
  elem_id="reranking-select-long-doc",
281
  interactive=True
282
  )
283
+ with gr.Row():
284
+ select_noreranker_only_btn = gr.ClearButton(
285
+ selected_rerankings,
286
+ value="Only show results without ranking models",
287
+ )
288
  with gr.Column(min_width=320):
289
  # select the metric
290
  with gr.Row():
 
408
  queue=True
409
  )
410
 
411
+ select_noreranker_only_btn.click(
412
+ clear_reranking_selections,
413
+ outputs=selected_rerankings
414
+ )
415
+
416
  with gr.TabItem("🚀Submit here!", elem_id="submit-tab-table", id=2):
417
  with gr.Column():
418
  with gr.Row():