Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def reset_database():
|
|
75 |
@app.get("/admin/documents/download")
|
76 |
def download_documents():
|
77 |
# Convert the documents list to a JSON string
|
78 |
-
documents_json = json.dumps(
|
79 |
|
80 |
# Create a response with the JSON string as the content
|
81 |
response = Response(content=documents_json, media_type="application/json")
|
|
|
75 |
@app.get("/admin/documents/download")
|
76 |
def download_documents():
|
77 |
# Convert the documents list to a JSON string
|
78 |
+
documents_json = json.dumps({"text": documents})
|
79 |
|
80 |
# Create a response with the JSON string as the content
|
81 |
response = Response(content=documents_json, media_type="application/json")
|