Request Issue With Django On AWS

I have recently been working on developing an application that can answer questions from documents. It has been going well so far, as the project itself works locally, and answers questions with great accuracy. However, when I brought this project over to AWS, it has incredible difficulty answering the questions, always failing with a 504 error. I am receiving the below error from the web.stdout logs, but I am not sure if this is why its failing, or what is going on.

The project is programmed in python with a Django front end, and Elastic Beanstalk is being used for deployment.
The project can be found here:
I'm not exactly sure where the error is, so I am posting the whole project. Thanks in advance for any help!

Back to Top