MindMate is an intelligent, sentiment-aware mental health chatbot that engages users with empathetic, uplifting, and supportive responses. It uses NLP (via Facebook's BlenderBot), sentiment analysis (via TextBlob), and a React interface to help users feel heard and understood.
- π€ AI-generated responses using
facebook/blenderbot-400M-distill - π¬ Real-time chatting with contextual awareness
- π Sentiment-based tone adjustment (uplifting, supportive, or neutral)
- π¨ Visually appealing React frontend
Backend:
- Python
- Flask
- Flask-CORS
- Transformers (
BlenderBot) - TextBlob
Frontend:
- React JS
- CSS for styling
- User inputs a message on the React frontend.
- Message is sent via POST to the Flask backend (
/mindmate). - The backend:
- Analyzes sentiment using TextBlob.
- Adjusts the response tone accordingly.
- Generates a response with Facebook's BlenderBot.
- The response is displayed back in the chat UI.
git clone https://github.com/your-username/mindmate.git
cd mindmate
2. Set Up the Backend
π¦ Install Dependencies
cd backend
pip install flask flask-cors transformers textblob
python -m textblob.download_corpora
π Run the Flask Server
python app.py