File size: 842 Bytes
b2f9b71
4b7a511
 
b2f9b71
4b7a511
b2f9b71
 
 
 
4b7a511
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Engagement Detection API
emoji: 🎥
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
---

# Engagement Detection API

A Flask API that uses **MARLIN** (Video Foundation Model) + **LSTM** to predict student engagement from video clips.

## Endpoints

| Method | Route | Description |
|--------|-------|-------------|
| POST | `/upload` | Upload a video chunk (`user_id`, `meeting_id`, `video`) |
| GET | `/process/<user_id>` | Trigger processing for a user |
| GET | `/health` | Health check |

## Example Upload Request

```bash
curl -X POST https://your-space.hf.space/upload \
  -F "user_id=student1" \
  -F "meeting_id=meeting42" \
  -F "video=@clip.mp4"
```

## Models Used
- [ControlNet/MARLIN](https://huggingface.co/ControlNet/MARLIN) — Video feature extractor
- Custom LSTM classifier trained on engagement data