Accessing unity catalog volumes from a databricks web application

kktim
New Contributor II

Hello,

I am trying to deploy a gradio app (app.py) in databricks, but I am having problem accessing data stored in a volume in unity catalog. It seems like that I cannot access the data using path like "/Volumes/catalog/schema.../my_data", which works fine while running in a notebook in workspace with unity catalog enabled. I have also tried using path like "dbfs:/..." and added the volume as a resource, but none of them is working.

I would like to ask if I am doing it correctly, or is there other way to reach the data (They are model weights saved as .pt).

One method that comes to my mind is using delta sharing to share the volume. However, it seems like that delta sharing is only available for tabular data.

Thanks.