aadil732 commited on
Commit
a59ab4a
·
verified ·
1 Parent(s): fa260cf

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -188,7 +188,7 @@ async def root(query: str, proffesion: str):
188
  return response_generator(query, proffesion)
189
 
190
  @app.post("/upload_document")
191
- async def upload_document(file_bytes: bytes = File(...)):
192
  """
193
  FastAPI endpoint to handle POST requests for uploading a document to the Pinecone index.
194
 
 
188
  return response_generator(query, proffesion)
189
 
190
  @app.post("/upload_document")
191
+ def upload_document(file_bytes: bytes = File(...)):
192
  """
193
  FastAPI endpoint to handle POST requests for uploading a document to the Pinecone index.
194