updated app.py to fix deployment bug