Updated the app.py, removed temp variables