modified to flask app

modified to flask app