Commit
·
a885180
1
Parent(s):
2c39311
Update app.py
Browse files
app.py
CHANGED
@@ -151,6 +151,7 @@ def util_get_list_pageno_and_contents(some_query_passage, page_documents,passage
|
|
151 |
tmp_array = []
|
152 |
for i, x in enumerate(passage_nodes):
|
153 |
tmp_dict = {"passage_content":x.page_content, "page_no":x.metadata['page_index']+1, "file_name": x.metadata['file_name'], "page_content": passage_documents[x.metadata['page_index']], "score": rescore[i] }
|
|
|
154 |
df = pd.DataFrame(tmp_array)
|
155 |
|
156 |
|
|
|
151 |
tmp_array = []
|
152 |
for i, x in enumerate(passage_nodes):
|
153 |
tmp_dict = {"passage_content":x.page_content, "page_no":x.metadata['page_index']+1, "file_name": x.metadata['file_name'], "page_content": passage_documents[x.metadata['page_index']], "score": rescore[i] }
|
154 |
+
tmp_array.append(tmp_dict)
|
155 |
df = pd.DataFrame(tmp_array)
|
156 |
|
157 |
|