Error while creating databricks custom app

Shivaprasad
Contributor

I am trying to create a simple databricks custom app but I am getting Error: Could not import 'app'. error.

app.yaml file

env:
 - name: FLASK_APP
   value: '/Workspace/Users/sam@xxx.com/databricks_apps/hello-world_2025_11_13-16_19/Gaap_commentry/app'

command: [
  "flask",
  "app.py",
  "run"
]
Looks like it's not able to locate the app. How I can fix the import error