Spaces:
Sleeping
Sleeping
Update api.py
Browse files
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 |
-
|
| 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 |
|