+ """
+ mood_value = st.components.v1.html(slider_html, height=100)
+ return mood_value
+
+ # --- Mood Slider ---
+ st.subheader("đ Track Your Mood")
+ mood_options = ['Very Sad', 'Sad', 'Neutral', 'Happy', 'Very Happy']
+ mood = st.slider(
+ 'Select your mood',
+ min_value=1, max_value=5, value=3, step=1
+)
+ coping_tips = {
+ 1: "Itâs okay to feel this way. Try some deep breathing exercises to find calm.",
+ 2: "Consider writing down your thoughts in the journal to process your feelings.",
+ 3: "A short walk or some light stretching might help you feel balanced.",
+ 4: "Great to hear youâre feeling happy! Share something positive in your journal.",
+ 5: "Youâre shining today! Keep spreading that positivity with a kind act."
+}
+ st.write(f"Selected mood: {mood_options[mood-1]}")
+ st.write(f"Coping tip: {coping_tips.get(mood, 'Letâs explore how youâre feeling.')}")
+
render_chat_interface()
handle_chat_input(model, system_prompt=get_tone_prompt())
@@ -150,20 +221,4 @@ def get_tone_prompt():
}
setTimeout(scrollToBottom, 100);
-""", unsafe_allow_html=True)
-
-st.markdown("""
-
-""", unsafe_allow_html=True)
\ No newline at end of file
+""", unsafe_allow_html=True)
\ No newline at end of file