Skip to content

Conversation

aila-reddemma-ydv
Copy link

What’s New
✅ Implemented an intuitive "emoji-based mood selector" in 'sidebar.py'
✅ Dynamically updates journaling prompt based on selected mood
✅ Integrated selected mood context with Gemini API response generation
✅ Removed unused imports (GLOBAL_RESOURCES, create_new_conversation) to prevent ImportErrors
✅ Ensured mood persistence via st.session_state

🔍 How It Works

  1. User selects mood (😊 😢 😡 etc.) from emoji radio.
  2. Corresponding mood label is stored in st.session_state["current_mood_val"]
  3. Custom journaling prompts are shown based on mood.
  4. "Ask TalkHeal" passes mood + input to Gemini for a tailored response.
  5. Tip and response displayed to user.

✅ Testing Done

  • App loads without errors
  • Mood selection updates correctly
  • Gemini returns response with mood context
  • Journal input + mood persists in session

📌 Related Issue
Fixes #18

🙌 Notes
Follows GSSoC’25 contribution guidelines
-Ready for review ✨
these are really implemented in my project

@aila-reddemma-ydv
Copy link
Author

Kindly review this PR. I’ve implemented issue #18 as per GSSoC’25 guidelines. Open to feedback! 😊

@eccentriccoder01
Copy link
Owner

Great work @aila-reddemma-ydv, please provide a working deployment link of your PR

@aila-reddemma-ydv
Copy link
Author

🚀 Live Demo of My PR
🔗 https://talkheal-qxzcvml6ab6todxqtvvttp.streamlit.app/

This deployment includes the updated features:

  • ✅ Emoji-based mood selector
  • ✅ Journaling prompt integration
  • ✅ Gemini API for mood-aware suggestions
    @eccentriccoder01 kindly grow through my PR link
    Let me know if any changes are needed. 🙌

@eccentriccoder01
Copy link
Owner

eccentriccoder01 commented Jul 26, 2025

Hey @aila-reddemma-ydv, could you explain a bit what changes your PR has brought about in the app? Cause the deployment https://talkheal-qxzcvml6ab6todxqtvvttp.streamlit.app/ and the original deployment of the app https://talkheal.streamlit.app/ seem pretty identical... Are you also sure that you deployed your modified PR and not the unchanged main? Please attach some relevant screenshots too to visualise the modifications better. Thanks!

@aila-reddemma-ydv
Copy link
Author

Hi @eccentriccoder01 , I truly appreciate your feedback!

I just want to say that I tried my best to implement the changes thoughtfully. While the app’s appearance may look quite similar at first glance, I’ve made functional improvements like the emoji-based mood selector and mood-aware journaling integration with the Gemini API.
Screenshot from 2025-07-27 02-35-00
Screenshot from 2025-07-27 02-34-24

I’ve also attached a screenshot (📸 above) showing the emoji mood selector in action.
Thanks again!

@pkbros
Copy link
Collaborator

pkbros commented Jul 27, 2025

Hi @aila-reddemma-ydv !
I see you're showing the emoji mood selector. But this feature was already there. Did you make any adjustments?
I would like to see the ' mood-aware journaling integration' in action. Can you provide some screenshots or video for the same?

@eccentriccoder01
Copy link
Owner

@aila-reddemma-ydv please don't mind but also if the changes are purely internal and not UI-based, please explain what new enhancements you've brought about.

@aila-reddemma-ydv
Copy link
Author

Hi @TalkHeal-Team 👋,

I made some corrections to the previous PR and am submitting a fresh one with the finalized implementation.

✅ Updates Included:
Fixed issues in the earlier push related to incorrect mood context handling.

Fully integrated emoji-based mood selector with mood-aware journaling prompts.

AI responses now dynamically reflect the selected emotional tone using Gemini API.

Resolved merge conflicts and ensured clean codebase.

📽 Demo Video:
Watch the demo here

Please let me know if any further changes are needed 🙌
Thanks for your guidance and time!

Best regards,
@aila-reddemma-ydv

@eccentriccoder01
Copy link
Owner

Alright @aila-reddemma-ydv, I reviewed the changes you made and now it's clear... But before merging your PR, please pull the latest changes as a PR has recently been merged. Thanks for your patience and efforts!

@aila-reddemma-ydv
Copy link
Author

aila-reddemma-ydv commented Jul 28, 2025

Thank you for the review! 😊
I’ve pulled the latest changes and resolved any conflicts.
My PR is now fully ready.
Thanks a lot for your guidance and support! 🙌

@aila-reddemma-ydv
Copy link
Author

hey @eccentriccoder01 ....
Kindly review and assign this PR under GSSoC'25. I'm happy to make any changes requested!

@eccentriccoder01
Copy link
Owner

@aila-reddemma-ydv the state of the app in the deployment link you provided https://talkheal-qxzcvml6ab6todxqtvvttp.streamlit.app/ seems to be broken...Please deploy your latest PR and let us know.

@aila-reddemma-ydv
Copy link
Author

@eccentriccoder01 ✅ Redeployment Complete
The app has been redeployed using the emoji‑mood‑selector branch, and it now reflects all recent enhancements and fixes.

🎯 Check it Out
Live demo: https://talkheal-qxzcvml6ab6todxqtvvttp.streamlit.app/

@eccentriccoder01
Copy link
Owner

@aila-reddemma-ydv This issue is persisting for too long. Please try to understand that the main app's interface at talkheal.streamlit.app looks like this currently:

Screenshot (602) Screenshot (601) Screenshot (600)
While your deployment https://talkheal-qxzcvml6ab6todxqtvvttp.streamlit.app is missing out on a whole bunch of features and updates: Screenshot (599)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add Emoji-Based Mood Selector with Dynamic AI Response Suggestions
4 participants