Almaatla commited on
Commit
cd65a86
·
verified ·
1 Parent(s): 3b0c68a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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([{"text": doc} for doc in documents])
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")