Hi @data_scientist3 ,
Would you share how you deployed the Streamlit app (Databricks Apps vs running Streamlit from a notebook/job cluster) and your clusterโs Databricks Runtime version? Thatโll help me tailor the exact steps to your setup.
Option 1: If you deployed a Databricks App (Streamlit app via Apps)
Option 2: Install requirements.txt to the cluster (workspace files)
If your requirements.txt is in the Databricks workspace, install it as a cluster library:
-
Upload or locate the requirements.txt in Workspace files (Workspace > Import).
-
Compute > your cluster > Libraries > Install new > Source: Workspace > select the requirements.txt path and Install.
-
Requirements-file installs are supported in Databricks Runtime 15.0+ (for workspace files). If youโre on an older runtime, use PyPI or volumes instead.
Option 3: Install directly from PyPI to the cluster
If you just need OpenAI, install it from PyPI:
- Compute > your cluster > Libraries > Install new > Source: PyPI > Package: openai==1.55.3 (or your required version) > Install