GriefSense is an NLP-powered emotion detection tool that not only detects human emotions from text but also provides Bhagavad Gita verse recommendations for spiritual comfort and guidance.
✨ Features
🤖 Emotion Detection using Hugging Face’s T5 model (mrm8488/t5-base-finetuned-emotion).
😊 Emoji Mapping – each emotion is associated with an expressive emoji.
📖 Gita Verse Recommendation – maps detected emotion to a relevant verse from the Bhagavad Gita.
📊 Visualization – displays a bar chart of detected emotion.
📁 Logging – stores user input + detected emotion in emotion_log.csv.
🛠️ Tech Stack
Python 3.x
Hugging Face Transformers
PyTorch
Matplotlib
CSV Logging
Clone the repository:
git clone https://github.com/Vishnu1234-tech/griefsense.git cd griefsense
Install dependencies:
pip install torch transformers matplotlib
Run the script:
python griefsense.py
Enter a sentence about your feelings, and receive:
Emotion + Emoji
Gita Verse Recommendation
Emotion Visualization
CSV Log Entry