Mpavan45 commited on
Commit
866cc2f
·
verified ·
1 Parent(s): fb0b9ae

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -2
src/streamlit_app.py CHANGED
@@ -30,8 +30,10 @@ with st.container():
30
  st.markdown("Ask financial questions about ITC Ltd. based on transcript data, powered by AI.")
31
  st.markdown('</div>', unsafe_allow_html=True)
32
 
33
- # Load API key
34
- GOOGLE_API_KEY = st.secrets.get("genai")
 
 
35
 
36
  # Initialize Chroma DB
37
  @st.cache_resource
 
30
  st.markdown("Ask financial questions about ITC Ltd. based on transcript data, powered by AI.")
31
  st.markdown('</div>', unsafe_allow_html=True)
32
 
33
+
34
+ # Safe way to access secrets
35
+ GOOGLE_API_KEY = st.secrets["general"]["genai"]
36
+
37
 
38
  # Initialize Chroma DB
39
  @st.cache_resource