This repository is an example of how to deploy a tensorflow model to a remote virtual server such that users can use it as an application.
- Flask Micro-framework for serving the application itself.
- Gunicorn Standard WSGI-compatible web server.
- Tensorflow The famous deep learning framework.
- Install Python 3 using pyenv. You can make use of the pyenv-installer to install pyenv effortlessly. This application requires Python 3!. It is assumed that every instructions are based on Python 3 instead of Python 2 without any mentioning.
- Run the following command:
pip install -r requirements.txt
- For development mode, run
flask run
- For production usage, run
gunicorn --bind 0.0.0.0:8080 --daemon wsgi