Mpavan45 commited on
Commit
2f11409
·
verified ·
1 Parent(s): 565bb53

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -38,7 +38,7 @@ with st.sidebar:
38
 
39
  # API key from Hugging Face Secrets
40
  try:
41
- GOOGLE_API_KEY = st.secrets["GOOGLE_API_KEY"]
42
  st.success("API Key loaded from Hugging Face Secrets!")
43
  except KeyError:
44
  st.error("Google API Key not found in Hugging Face Secrets. Please set 'GOOGLE_API_KEY'.")
 
38
 
39
  # API key from Hugging Face Secrets
40
  try:
41
+ GOOGLE_API_KEY = st.secrets.get["GOOGLE_API_KEY"]
42
  st.success("API Key loaded from Hugging Face Secrets!")
43
  except KeyError:
44
  st.error("Google API Key not found in Hugging Face Secrets. Please set 'GOOGLE_API_KEY'.")