This is a project in which Machine Learning Models are deployed on production using Flask API
You must have Scikit Learn, Pandas (for Machine Leraning Model) and Flask (for API) installed.
This project has four major parts :
- model.ipynb - This contains code for our Machine Learning model to predict price of houses based on training data in 'train.csv' file.
- app.py - This contains Flask APIs that receives house details through GUI or API calls, computes the precited value based on our model and returns it.
- templates - This folder contains the HTML template to allow user to enter house detail and displays the predicted House price.
- Ensure that you are in the project home directory. Create the machine learning model by running below command -
python model.py
This would create a serialized version of our model into a file model.pkl
- Run app.py using below command to start Flask API
python app.py
By default, flask will run on port 5000.
- Navigate to URL http://localhost:5000
You should be able to view the homepage
Enter valid numerical values in all 19 input boxes and hit Predict.
If everything goes well, you should be able to see the predcited salary vaule on the HTML page!