Containerize AllenNLP model

Job ID: 30752928

Budget: $30 – $250 USD

Hi, I need a simple Dockerfile fixed that builds a container running a FastAPI server that initialises an AllenNLP model. I'm including my own Dockerfile, requirements.txt and main.py which don't work at the moment because when the container starts, it begins downloading something (a dependency?) which then crashes the server because of timeouts. The main.py file works fine when I run it locally. Please help me sort this out!

N.B. The folder "coref-data" that is copied into the container just contains the package from here:
https://storage.googleapis.com/allennlp-public-models/coref-spanbert-large-2021.03.10.tar.gz

Details about this file here (see under model usage): https://demo.allennlp.org/coreference-resolution
Related categories: Python Machine Learning (ML) Docker