genaitiwari commited on
Commit
0a0a66e
ยท
1 Parent(s): a895c78

updated readme

Browse files
Files changed (2) hide show
  1. README.md +14 -1
  2. app.py +7 -2
README.md CHANGED
@@ -1,6 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # HealthAI Advisor ๐ŸŒฟ
2
 
3
- [![Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://your-app-url.streamlit.app/)
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
 
6
  An AI-powered health and wellness assistant providing personalized diet plans, workout routines, yoga sequences, and real-time health coaching using Groq's lightning-fast LLMs.
 
1
+ ---
2
+ title: HealthAIAdvisor
3
+ emoji: ๐Ÿ 
4
+ colorFrom: purple
5
+ colorTo: yellow
6
+ sdk: streamlit
7
+ sdk_version: 1.43.2
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ short_description: An AI-powered health and wellness assistant providing person
12
+ ---
13
+
14
  # HealthAI Advisor ๐ŸŒฟ
15
 
16
+ [![Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://healthaiadvisor.streamlit.app/)
17
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
18
 
19
  An AI-powered health and wellness assistant providing personalized diet plans, workout routines, yoga sequences, and real-time health coaching using Groq's lightning-fast LLMs.
app.py CHANGED
@@ -18,8 +18,13 @@ with st.sidebar:
18
  # API key input for Groq
19
  st.session_state["GROQ_API_KEY"] = st.text_input("GROQ API Key", type="password")
20
  st.sidebar.markdown("๐Ÿ”‘ [Get Groq API Key](https://console.groq.com/keys)")
21
-
22
- client = Groq(api_key=st.session_state["GROQ_API_KEY"])
 
 
 
 
 
23
 
24
  # Custom CSS
25
  st.markdown("""
 
18
  # API key input for Groq
19
  st.session_state["GROQ_API_KEY"] = st.text_input("GROQ API Key", type="password")
20
  st.sidebar.markdown("๐Ÿ”‘ [Get Groq API Key](https://console.groq.com/keys)")
21
+
22
+
23
+ # Initialize Groq client
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("""