File size: 883 Bytes
f9e4904
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: "Real-Time Emotion Detection (RTED)"
emoji: "😊"
cover_image: "cover.png"
sdk: "docker"
sdk_version: "3.0.0"
app_file: "app.py"
python_version: "3.9"
pinned: false
---


# Real-Time Emotion Detection (RTED)

This app uses a deep learning model to classify emotions from images and real-time video streams.

### How It Works
1. **Choose a Detection Mode:**  
   - **Static Detection:** Upload an image.  
   - **Real-Time Detection:** (Currently disabled due to Hugging Face webcam restrictions).  

2. **Model Predictions:**  
   - The model predicts emotions from 7 categories:  
     **Angry, Disgust, Fear, Happy, Neutral, Sad, Surprise**  

3. **File Structure:**  
   - **Model File:** `model/RAFDB_Custom.h5` (Ensure this exists)  
   - **Static Files:** Inside `static/`  

---

### Running the App Locally  
```bash
pip install -r requirements.txt
python app.py