joyjonesmark commited on
Commit
31c0684
Β·
1 Parent(s): 1d2cc0e

modify and added

Browse files
Files changed (3) hide show
  1. .gitignore +2 -1
  2. .streamlit/secrets.toml +2 -0
  3. app.py +5 -1
.gitignore CHANGED
@@ -1 +1,2 @@
1
- venv/
 
 
1
+ venv/
2
+ .streamlit/
.streamlit/secrets.toml ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [groq]
2
+ api_key = "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"
app.py CHANGED
@@ -6,7 +6,11 @@ import os
6
  st.set_page_config(page_title="Fitness and Nutrition Coaching Chatbot", page_icon="πŸ‹οΈβ€β™‚οΈ")
7
 
8
  # Read the API key from environment variables or Streamlit secrets
9
- groq_api_key = os.getenv("GROQ_API_KEY") or st.secrets["GROQ_API_KEY"]
 
 
 
 
10
 
11
  client = Groq(api_key=groq_api_key, timeout=60)
12
 
 
6
  st.set_page_config(page_title="Fitness and Nutrition Coaching Chatbot", page_icon="πŸ‹οΈβ€β™‚οΈ")
7
 
8
  # Read the API key from environment variables or Streamlit secrets
9
+ # groq_api_key = st.secrets["GROQ_API_KEY"]
10
+
11
+ # client = Groq(api_key=groq_api_key, timeout=60)
12
+
13
+ groq_api_key = st.secrets["groq"]["api_key"]
14
 
15
  client = Groq(api_key=groq_api_key, timeout=60)
16