App is an application to study ml-algorithm in this case (prediction). I use a data for insurance basically I watch out this medium paper. https://towardsdatascience.com/build-and-deploy-your-first-machine-learning-web-app-e020db344a99
You need PyCaret, Flask that's all.
pip install pycaret
pip install flask
https://hh-insurance.herokuapp.com/
import requests
url = 'https://hh-insurance.herokuapp.com/predict_api'
pred = requests.post(url,json={ 'age':55,
'sex':'male',
'bmi':59,
'children':1,
'smoker':'male',
'region':'northwest'})
print(pred.json())
python api_json_test.py
Pull requests are welcome.
Within the download you'll find the following directories and files.
ml-app-insurance/
├── api_json_test.py
├── Procfile
├── README.md
├── dataset
│ ├── insurance.csv
├── templates
│ ├── home.html
├── app.py
├── requirements.txt
├── insurance_14052020.pkl {model}