Create flask_api.py

API for predicting login frequency for a website.