NameIsJACK commited on
Commit
05d9da3
·
1 Parent(s): 4ecca61

testing rag

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -205,5 +205,5 @@ async def process_document_route(file: UploadFile = File(...)):
205
  "botResponse": "Thank you for providing your PDF document. I have analyzed it, so now you can ask me any questions regarding it!"
206
  })
207
  except Exception as e:
208
- app.logger.error(f"Error processing document: {e}")
209
  raise HTTPException(status_code=500, detail="An error occurred while processing the document.")
 
205
  "botResponse": "Thank you for providing your PDF document. I have analyzed it, so now you can ask me any questions regarding it!"
206
  })
207
  except Exception as e:
208
+ logger.error(f"Error processing document: {e}")
209
  raise HTTPException(status_code=500, detail="An error occurred while processing the document.")
requirements.txt CHANGED
@@ -20,3 +20,4 @@ aiohttp
20
  requests
21
  python-multipart
22
  emoji
 
 
20
  requests
21
  python-multipart
22
  emoji
23
+ cryptography