Daniel Marques commited on
Commit
eb7bd29
1 Parent(s): d0c75d3

feat: add save document route

Browse files
Files changed (2) hide show
  1. SOURCE_DOCUMENTS/dataset.txt +0 -0
  2. main.py +1 -1
SOURCE_DOCUMENTS/dataset.txt CHANGED
The diff for this file is too large to render. See raw diff
 
main.py CHANGED
@@ -147,7 +147,7 @@ def run_ingest_route():
147
  except Exception as e:
148
  raise HTTPException(status_code=500, detail=f"Error occurred: {str(e)}")
149
 
150
- @app.post("/save_document/")
151
  async def create_upload_file(file: Union[UploadFile, None] = None):
152
  if not file:
153
  raise HTTPException(status_code=400, detail="No upload file sent")
 
147
  except Exception as e:
148
  raise HTTPException(status_code=500, detail=f"Error occurred: {str(e)}")
149
 
150
+ @api_app.post("/save_document/")
151
  async def create_upload_file(file: Union[UploadFile, None] = None):
152
  if not file:
153
  raise HTTPException(status_code=400, detail="No upload file sent")