Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,6 @@ def upload_database(file: UploadFile = File(...)):
|
|
155 |
return {"message": f"Database uploaded with {len(documents)} documents"}
|
156 |
|
157 |
|
158 |
-
@app.post("/admin/database/upload")
|
159 |
def upload_database_0(file: UploadFile = File(...)):
|
160 |
# Read the contents of the uploaded file
|
161 |
contents = file.file.read()
|
|
|
155 |
return {"message": f"Database uploaded with {len(documents)} documents"}
|
156 |
|
157 |
|
|
|
158 |
def upload_database_0(file: UploadFile = File(...)):
|
159 |
# Read the contents of the uploaded file
|
160 |
contents = file.file.read()
|