Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
master_project/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (30 sloc)
1.07 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instruction for running | |
## ML-Model-Flask-Deployment | |
This is the code for machine learn models using flask | |
### Prerequisites | |
Scikit Learn, Pandas (for Machine Leraning Model) and Flask | |
### Project Structure | |
This project has four major parts : | |
1. `model.py` - contains code fot our Machine Learning model | |
2. `app.py` - contains Flask APIs that receives details through GUI or API calls | |
3. `request.py` - uses requests module to call APIs and dispalys the returned value. | |
4. `templates` - This folder contains the HTML template | |
### Running the project | |
1. Create the machine learning model | |
``` | |
python model.py | |
``` | |
This creates serialized version of our model into model.pkl | |
2. Run app.py using below command | |
``` | |
python app.py | |
``` | |
Flask should run on port 5000. | |
3. Navigate to http://localhost:5000 | |
You should be able to view the homepage | |
Enter valid numerical values in all 3 input boxes and hit Predict. | |
4. Can also send direct POST requests to FLask API using Python's inbuilt request module | |
Below command to send the request with some pre-popuated values - | |
``` | |
python request.py | |
``` |