Nothing happens when I click “Deploy” on a new app which uses open AI API

I am facing issue while trying to deploy an app which uses openai’s API. I have embedded code to fetch secret key in streamlit.

I verified similar issue which happened before a year. The user mentioned that the issue got resolved after the streamlit has fixed something. Kindly help

If nothing happens when you click “Deploy” on your Streamlit app using the OpenAI API, it could be due to how secrets are managed. Ensure your secrets.toml file or Streamlit Community Cloud’s secrets section includes the OpenAI API key correctly. Also, verify that you’re not calling st.secrets["openai_api_key"] outside the main() or function scope. If the issue persists, check Streamlit logs for deployment errors. This was previously a known issue and may relate to how Streamlit handled secrets, now resolved. As a developer, make sure all environment variables are securely and correctly set before deploying.