Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import requests
|
| 3 |
from groq import Groq
|
| 4 |
|
| 5 |
# Groq API Key (replace with your actual API key)
|
|
@@ -40,8 +39,11 @@ def health_advice_chatbot():
|
|
| 40 |
# Self-esteem Level (Slider)
|
| 41 |
self_esteem = st.slider("On a scale of 1 to 10, how would you rate your self-esteem?", 1, 10, 5)
|
| 42 |
|
| 43 |
-
# Stress Level (Radio Buttons)
|
| 44 |
-
stress_level = st.radio(
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
# Submit button to get health advice
|
| 47 |
if st.button("Get Health Advice"):
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
from groq import Groq
|
| 3 |
|
| 4 |
# Groq API Key (replace with your actual API key)
|
|
|
|
| 39 |
# Self-esteem Level (Slider)
|
| 40 |
self_esteem = st.slider("On a scale of 1 to 10, how would you rate your self-esteem?", 1, 10, 5)
|
| 41 |
|
| 42 |
+
# Stress Level (Radio Buttons with "Low", "Moderate", "High")
|
| 43 |
+
stress_level = st.radio(
|
| 44 |
+
"How would you rate your stress level?",
|
| 45 |
+
["Low", "Moderate", "High"]
|
| 46 |
+
)
|
| 47 |
|
| 48 |
# Submit button to get health advice
|
| 49 |
if st.button("Get Health Advice"):
|