$ python --version
Python 3.5.5
- Flask-RESTPlus
Clone repo ...
$ git clone https://<your-user-id>@bitbucket.org/productionize-ml-model.git
$ conda create --name <proj_name35> python=3.5
$ source activate <proj_name35>
Sample model (the model I used for this tutorial) can be download from the below link. Script that I used to train the model is https://github.com/reddimohan/Custom-image-classification-using-Inception-v3
Model link: https://1drv.ms/u/s!ArDo8DV9hhHCgTL-SFawrYAmU_DT?e=1TZYw6
$ pip install -r requirements.txt
$ cd productionize-ml-model/
$ python app_server.py --debug
$ gunicorn --bind 0.0.0.0:5000 wsgi:application -w 1
Digitalocean has very good tutorial on deploying this to nginx, gunicorn so that it accepts multiple requests
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-16-04