A simple Streamlit app that lists images stored in a Databricks Volume and displays them in a 3‑column grid.
- Python: 3.9+ recommended
- Pip for installing dependencies
- Databricks access and authentication (host + PAT) for the
databricks-sdk
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- VOLUME_PATH: Absolute path to a Databricks Volume mount, e.g.
/Volumes/<catalog>/<schema>/<volume> - The app expects images under the volume (set in the app.yaml)
streamlit run app.pyThis repo includes an app.yaml:
command: runsstreamlit run app.pyenvsetsVOLUME_PATHvia a bound volume (valueFrom: 'volume')
In Databricks Apps:
- Create a custom app and add the app.py file.
- Bind a Volume to the app and ensure its name matches the
valueFromreference. - Add the requirements.txt file
- Sync and Deploy the application