Abdelrahmann121 commited on
Commit
cbefbc7
·
verified ·
1 Parent(s): 6da8668

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -8
README.md CHANGED
@@ -1,13 +1,42 @@
1
  ---
2
- title: Ragchatbot
3
- emoji: 📊
4
- colorFrom: red
5
- colorTo: red
6
- sdk: gradio
7
- sdk_version: 5.45.0
8
  app_file: app.py
9
  pinned: false
10
- license: mit
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.