Spaces:
Sleeping
Sleeping
orionweller
commited on
Commit
•
50dea48
1
Parent(s):
aca3f39
Update app.py
Browse files
app.py
CHANGED
@@ -484,7 +484,7 @@ if check_valid_args(run1_file, run2_file, dataset_name, qrels, queries, corpus):
|
|
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"],
|
488 |
|
489 |
if doc_expansion1 is not None and run1_uses_doc_expansion != "None":
|
490 |
show_orig_rel1 = col_run1.checkbox("Show Original Relevant Doc(s)", key=f"{inst_index}relorig_run1", value=False)
|
|
|
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"], relevant_score[doc_id]) for doc_id in relevant_docs]
|
488 |
|
489 |
if doc_expansion1 is not None and run1_uses_doc_expansion != "None":
|
490 |
show_orig_rel1 = col_run1.checkbox("Show Original Relevant Doc(s)", key=f"{inst_index}relorig_run1", value=False)
|