Deployment of 3 NLP Pytorch models to a flask app not working

I followed the notebook 2, 4 and 6 of this repo: to built a sentiment analyzer. I now want to deploy them using flask but I can’t manage to get things working. Can experienced people with this task comment or dm me for me to deploy these models to flask?

I tried saving and loading the vocab using pickle or dill but there were errors with padx and also that the field attribute does not have an attribute stoi.

I am honestly stuck and trying for weeks now. I need to hand in the project next week :confused: