Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You must have Scikit Learn, Pandas (for Machine Leraning Model) and Flask (for A

### Project Structure
This project has four major parts :
1. model.py - This contains code fot our Machine Learning model to predict employee salaries absed on trainign data in 'hiring.csv' file.
1. model.py - This contains code fot our Machine Learning model to predict employee salaries based on training data in 'hiring.csv' file.
2. app.py - This contains Flask APIs that receives employee details through GUI or API calls, computes the precited value based on our model and returns it.
3. request.py - This uses requests module to call APIs already defined in app.py and dispalys the returned value.
4. templates - This folder contains the HTML template to allow user to enter employee detail and displays the predicted employee salary.
Expand All @@ -22,12 +22,12 @@ This would create a serialized version of our model into a file model.pkl
```
python app.py
```
By default, flask will run on port 5000.
By default, flask will run on port 5000

3. Navigate to URL http://localhost:5000

You should be able to view the homepage as below :
![alt text](http://www.thepythonblog.com/wp-content/uploads/2019/02/Homepage.png)
![alt text](http://www.thepythonblog.com/wp-content/uploads/2019/02/Homepage.png);

Enter valid numerical values in all 3 input boxes and hit Predict.

Expand Down