Serving a simple machine learning model as a webservice using flask.
-
From your intended location, run:
git clone [repository]
-
Cd to the folder
-
Run:
python3 -m venv env
- If you do not have virtualenv set up, run
pip install virtualenv
- If you do not have virtualenv set up, run
-
To activate, run:
source env/bin/activate
- (To deactivate, run: deactivate)
-
Ensure your virtual environment is running Python 3.x,
- verify by running:
python --version
- verify by running:
-
Run:
pip install -r requirements.txt
to install requirements -
Run:
python main.py
to serve the model as a REST Web Service