Make sure you have Flask and sklearn installed:
pip install Flask sklearn
Run Flask app:
python app.py
Use POST method to send data as JSON:
{
"Glazing_Area": 0.0,
"Wall_Area": 294.0,
"Roof_Area": 380.25
}
Flask REST API that determines if a building is energy efficient or not
Jupyter Notebook