Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,10 @@ def store_document_data(PDF_FILE, METADATA_FILE, INDEX_FILE):
|
|
| 67 |
metadata[str(doc_index)] = PDF_FILE
|
| 68 |
print(" Saved Metadata")
|
| 69 |
|
| 70 |
-
return json.dumps({
|
|
|
|
|
|
|
|
|
|
| 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 json.dumps({
|
| 71 |
+
"metadata": metadata,
|
| 72 |
+
"index": index
|
| 73 |
+
})
|
| 74 |
|
| 75 |
def retrieve_document(query):
|
| 76 |
print(f"Retrieving document based on:\n{query}")
|