First I created __init__.py
__init__.py
from flask import Flask app = Flask(__name__)
Then in a separate file, in the same directory,
Your __init__.py file needs to go in the folder named app, not the same directory as the run.py file.
from app import app is looking in the app folder, so the __init__.py file needs to sit in there.
from app import app