Skip to content

hemaa-priya/databricks-image-render-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Image rendering App

A simple Streamlit app that lists images stored in a Databricks Volume and displays them in a 3‑column grid.

Prerequisites

  • Python: 3.9+ recommended
  • Pip for installing dependencies
  • Databricks access and authentication (host + PAT) for the databricks-sdk

Install

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Configure

  • 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)

Run locally

streamlit run app.py

Deploy (Databricks Apps)

This repo includes an app.yaml:

  • command: runs streamlit run app.py
  • env sets VOLUME_PATH via a bound volume (valueFrom: 'volume')

In Databricks Apps:

  1. Create a custom app and add the app.py file.
  2. Bind a Volume to the app and ensure its name matches the valueFrom reference.
  3. Add the requirements.txt file
  4. Sync and Deploy the application

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages