Model Deployment with Flask
This repo demonstrates how a simple model can be deployed on a server, on a local machine.
Repository
This repo contains an already built Linear Regression model, and uses Flask Python package for deployment.
It makes use of only three very simple HTML pages throughout the server. These HTML pages can be found in flask_wrapper -> templates.
The repo also contains two python files within flask_wrapper, one of them uses the model to predict, and the other one is the actual server.
The run.py file is used to initialize the server.
Getting started
Open your terminal.
After cloning this repository, if the parent directory of this repo is still model-deployment-with-flask
, then change your directory to model-deployment-with-flask
with:
cd path/to/directory/model-deployment-with-flask
If your the parent directory of this repo in your computer is not model-deployment-with-flask
, then you can change your directory to the directory where the repo is with:
cd path/to/repo/directory
Then run the following code.
python run.py
Your default browser will come on, the site will be opened, then you can enter your input.
Summary
This repo just contains a demonstration. It will be updated in the future to contain more information.