Spaces:
Running
Running
orionweller
commited on
Commit
•
aca3f39
1
Parent(s):
a3306e2
Update app.py
Browse files
app.py
CHANGED
@@ -483,7 +483,7 @@ if check_valid_args(run1_file, run2_file, dataset_name, qrels, queries, corpus):
|
|
483 |
container_two_docs_rel = st.container()
|
484 |
col_run1, col_run2 = container_two_docs_rel.columns(2, gap="medium")
|
485 |
relevant_docs = list(qrels[str(inst_num)].keys())[:n_relevant_docs]
|
486 |
-
relevant_score = {ind_doc_id:
|
487 |
doc_texts = [(doc_id, corpus[doc_id]["title"] if "title" in corpus[doc_id] else "", corpus[doc_id]["text"], relevance_score[doc_id]) for doc_id in relevant_docs]
|
488 |
|
489 |
if doc_expansion1 is not None and run1_uses_doc_expansion != "None":
|
|
|
483 |
container_two_docs_rel = st.container()
|
484 |
col_run1, col_run2 = container_two_docs_rel.columns(2, gap="medium")
|
485 |
relevant_docs = list(qrels[str(inst_num)].keys())[:n_relevant_docs]
|
486 |
+
relevant_score = {ind_doc_id: qrels[str(inst_num)][ind_doc_id] for ind_doc_id in relevant_docs}
|
487 |
doc_texts = [(doc_id, corpus[doc_id]["title"] if "title" in corpus[doc_id] else "", corpus[doc_id]["text"], relevance_score[doc_id]) for doc_id in relevant_docs]
|
488 |
|
489 |
if doc_expansion1 is not None and run1_uses_doc_expansion != "None":
|