Update app.py

Add flow functionality