orionweller commited on
Commit
67b90dc
·
1 Parent(s): c84c243

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -60,8 +60,8 @@ def load_run(f_run):
60
 
61
 
62
  with st.sidebar:
63
- dataset_name = st.selectbox("Select a dataset in BEIR", ("scifact", "trec-covid", "fever"))
64
- metric_name = st.selectbox("Select a metric", ("recall_5", "recall_10"))
65
  # sliderbar of how many Top N to choose
66
  top_n = st.slider("Top N", 1, 100, 3)
67
  x = st.header('Upload a run file')
@@ -142,7 +142,10 @@ with col1:
142
 
143
 
144
  with col2:
145
- st.title(f"Information ({len(checkboxes) - 1 if checkboxes else 0}/{len(name_of_columns) - 1})")
 
 
 
146
  ### Only one run file
147
  if run1_file is not None and run2_file is None:
148
  for check_idx, (inst_num, checkbox) in enumerate(checkboxes):
 
60
 
61
 
62
  with st.sidebar:
63
+ dataset_name = st.selectbox("Select a dataset in BEIR", ("scifact", "trec-covid", "fever", "fiqa", "nf_corpus"))
64
+ metric_name = st.selectbox("Select a metric", ("recall_10", "recall_5"))
65
  # sliderbar of how many Top N to choose
66
  top_n = st.slider("Top N", 1, 100, 3)
67
  x = st.header('Upload a run file')
 
142
 
143
 
144
  with col2:
145
+ if checkboxes is not None:
146
+ st.title(f"Information ({len(checkboxes) - 1 if checkboxes else 0}/{len(name_of_columns) - 1})")
147
+ else:
148
+ st.title(f"Information")
149
  ### Only one run file
150
  if run1_file is not None and run2_file is None:
151
  for check_idx, (inst_num, checkbox) in enumerate(checkboxes):