Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,13 +1,42 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
license:
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Empathetic Chatbot
|
| 3 |
+
emoji: 💬
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: 1.28.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Emotion-Aware Empathetic Chatbot
|
| 14 |
+
|
| 15 |
+
An AI-powered chatbot that detects emotions from user messages and provides empathetic responses using advanced NLP techniques.
|
| 16 |
+
|
| 17 |
+
## Features
|
| 18 |
+
|
| 19 |
+
- **Real-time Emotion Detection**: Uses DistilBERT to identify emotions from text
|
| 20 |
+
- **RAG System**: Retrieval-Augmented Generation for contextual responses
|
| 21 |
+
- **Empathetic Responses**: Tailored responses based on detected emotions
|
| 22 |
+
- **Interactive Chat Interface**: Clean, user-friendly Streamlit interface
|
| 23 |
+
- **Emotion Analytics**: Track emotion patterns over conversation history
|
| 24 |
+
|
| 25 |
+
## How it Works
|
| 26 |
+
|
| 27 |
+
1. **Emotion Detection**: Analyzes user input to detect emotions (anger, joy, sadness, optimism)
|
| 28 |
+
2. **Template Retrieval**: Uses FAISS vector search to find relevant response templates
|
| 29 |
+
3. **Response Generation**: Combines emotion-aware templates with empathetic base responses
|
| 30 |
+
4. **Context Awareness**: Maintains conversation history for better responses
|
| 31 |
+
|
| 32 |
+
## Technologies Used
|
| 33 |
+
|
| 34 |
+
- **Streamlit**: Web application framework
|
| 35 |
+
- **Transformers**: Emotion detection model (DistilBERT)
|
| 36 |
+
- **Sentence Transformers**: Text embeddings for similarity search
|
| 37 |
+
- **FAISS**: Vector similarity search
|
| 38 |
+
- **Datasets**: Emotion dataset from Cardiff NLP
|
| 39 |
+
|
| 40 |
+
## Disclaimer
|
| 41 |
+
|
| 42 |
+
This is an automated chatbot designed for emotional support. For serious mental health concerns, please consult a qualified mental health professional.
|