Spaces:
Sleeping
Sleeping
Commit
Β·
31c0684
1
Parent(s):
1d2cc0e
modify and added
Browse files- .gitignore +2 -1
- .streamlit/secrets.toml +2 -0
- 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 =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|