Spaces:
Running
Running
Commit
·
29bb8bb
1
Parent(s):
da65c5d
Update app.py
Browse files
app.py
CHANGED
@@ -77,17 +77,6 @@ with st.sidebar:
|
|
77 |
|
78 |
|
79 |
|
80 |
-
evaluator = pytrec_eval.RelevanceEvaluator(
|
81 |
-
qrels, pytrec_eval.supported_measures)
|
82 |
-
|
83 |
-
if run1_file is not None:
|
84 |
-
run1, run1_pandas = load_run(run1_file)
|
85 |
-
results1 = evaluator.evaluate(run1) # dict of instance then metrics then values
|
86 |
-
|
87 |
-
if run2_file is not None:
|
88 |
-
run2, run2_pandas = load_run(run2_file)
|
89 |
-
results2 = evaluator.evaluate(run2)
|
90 |
-
|
91 |
|
92 |
col1, col2 = st.columns([1, 2], gap="medium")
|
93 |
|
@@ -97,6 +86,18 @@ is_better_run2_count = 0
|
|
97 |
checkboxes = None
|
98 |
with col1:
|
99 |
corpus, queries, qrels = get_beir(dataset_name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
st.title("Instances")
|
101 |
if run1_file is not None:
|
102 |
name_of_columns = ["Overview"] + sorted([str(item) for item in set(run1_pandas.qid.tolist())])
|
|
|
77 |
|
78 |
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
col1, col2 = st.columns([1, 2], gap="medium")
|
82 |
|
|
|
86 |
checkboxes = None
|
87 |
with col1:
|
88 |
corpus, queries, qrels = get_beir(dataset_name)
|
89 |
+
|
90 |
+
evaluator = pytrec_eval.RelevanceEvaluator(
|
91 |
+
qrels, pytrec_eval.supported_measures)
|
92 |
+
|
93 |
+
if run1_file is not None:
|
94 |
+
run1, run1_pandas = load_run(run1_file)
|
95 |
+
results1 = evaluator.evaluate(run1) # dict of instance then metrics then values
|
96 |
+
|
97 |
+
if run2_file is not None:
|
98 |
+
run2, run2_pandas = load_run(run2_file)
|
99 |
+
results2 = evaluator.evaluate(run2)
|
100 |
+
|
101 |
st.title("Instances")
|
102 |
if run1_file is not None:
|
103 |
name_of_columns = ["Overview"] + sorted([str(item) for item in set(run1_pandas.qid.tolist())])
|