Struggling to get my app to run on Streamlit Community Cloud
I have no issues running in Replit but when i try and load the Github repo into Streamlit community i run into issues with the API key.
Using Streamlit secrets ive added my API key
[openai]
OPENAI_API_KEY = "I have my api key here"
I’m calling the API Key here
openai_api_key = st.secrets["OPENAI_API_KEY"]
Im getting this error however
Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter. (type=value_error)
[18:32:26] ❗️ We have encountered an unexpected problem. If this issue persists, please contact support