Update app.py

fix the log bug