This repository contains the code for the my blog post on setting up a server for NLP models in production.
conda env create -f environment.yml
python train_model.py
mkdir serving-nlp/model_repository/
mv sentiment-model/ model_repository/
cp config.pbtxt model_repository/sentiment-model/
touch model_repository/sentiment-model/labels.txt
printf '%s\n%s\n' 'negative' 'positive' >> model_repository/sentiment-model/labels.txt
docker-compose up
python query_model.py