You need to call create_app to get the application that Gunicorn will serve.
In app.py do:
app.py
from app import create_appapp = create_app()
Then change your Procfile to this:
web: flask db upgrade; gunicorn app:app