Spaces:
Sleeping
Sleeping
Update app.py
Browse filesreturn data on store_document_data to a dict
app.py
CHANGED
@@ -67,7 +67,7 @@ def store_document_data(PDF_FILE, METADATA_FILE, INDEX_FILE):
|
|
67 |
metadata[str(doc_index)] = PDF_FILE
|
68 |
print(" Saved Metadata")
|
69 |
|
70 |
-
return {"metadata": metadata, "index": index}
|
71 |
|
72 |
def retrieve_document(query):
|
73 |
print(f"Retrieving document based on:\n{query}")
|
|
|
67 |
metadata[str(doc_index)] = PDF_FILE
|
68 |
print(" Saved Metadata")
|
69 |
|
70 |
+
return [{"metadata": metadata}, {"index": index}]
|
71 |
|
72 |
def retrieve_document(query):
|
73 |
print(f"Retrieving document based on:\n{query}")
|