This is a demo project to elaborate how Machine Learn Models are deployed on production using Flask API
You must have Flask (for API) installed.
This project has four major parts :
- index.html - This contains code for accepting xray images to detect pneumonia
- app.py - This contains Flask APIs that receives images from GUI or API calls, computes the precited value based on our model and returns it.
- model.h5 - pretrained model
- 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