The Flask API to expose model and get predictions
![](https://www.deeplearningdaily.com/wp-content/uploads/2021/10/the-flask-api-to-expose-model-and-get-predictions_61772af845d76-600x400.jpeg)
This repo contains the Flask API to expose model and get predictions.
Expose Model As An API
- Model Trainig will happen in server(i.e. where ever training of model is done is refered as server here)
- Model can be saved with .h5, .pkl, .sav
- Hosting the model in server side using Flask Framework
- Now Flask API can be consumend by mobile app.
Flask Api Deployment in Azure App service
- Flask code
- Run and check in local
- Create Azure App service
- Run python3 app.py
- Get the execution url from the App service instance and verify it