Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 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({"metadata": metadata}, {"index": index})
|
| 71 |
|
| 72 |
def retrieve_document(query):
|
| 73 |
print(f"Retrieving document based on:\n{query}")
|