from flask import Flask def create_app(): app = Flask(__name__) app.config['INSTANCE_PATH'] = '/tmp/instance' # Ensure this path exists return app