genaitiwari commited on
Commit
a573147
·
1 Parent(s): 12b5003
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ with st.sidebar:
24
  if st.session_state["GROQ_API_KEY"]:
25
  client = Groq(api_key=st.session_state["GROQ_API_KEY"])
26
  else :
27
- client = Groq(api_key= st.secrets.get("GROQ_API_KEY", "sk-your-key"))
28
 
29
  # Custom CSS
30
  st.markdown("""
 
24
  if st.session_state["GROQ_API_KEY"]:
25
  client = Groq(api_key=st.session_state["GROQ_API_KEY"])
26
  else :
27
+ client = Groq(api_key=os.environ.get("GROQ_API_KEY", st.secrets.get("GROQ_API_KEY", "sk-your-key")))
28
 
29
  # Custom CSS
30
  st.markdown("""