- First link the weights file:
ln -s /path/to/weights.pt ./model.pt
- Install requirements
pip install -r requirements.txt
- Run the server locally with:
python app.py
- Copy the weights file to the root directory.
cp /path/to/weights.pt ./model.pt
- Containerize the server with:
docker build -t ai-server .
- Run the container with:
docker run -p 127.0.0.1:5000:80 ai-server