File size: 847 Bytes
421391b
27d04ef
 
 
 
421391b
 
27d04ef
421391b
 
27d04ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
---
title: IDO Backend
emoji: ๐Ÿ“บ
colorFrom: purple
colorTo: pink
sdk: docker
pinned: false
license: mit
---

# IDO Backend - YouTube Wrapped API

FastAPI backend for processing YouTube Takeout data and generating personalized Wrapped cards.

## Features

- ๐Ÿ“Š Stateless ZIP processing (in-memory, no data stored)
- ๐ŸŽฏ 19 insight cards with watch patterns
- ๐Ÿ” Association rule mining for viewing habits
- ๐ŸŒ Ready for ML model integration

## API Endpoints

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/wrapped/generate` | POST | Generate wrapped cards from ZIP |
| `/api/health` | GET | Health check |

## Usage

```bash
curl -X POST "https://your-space.hf.space/api/wrapped/generate" \
  -F "file=@takeout.zip" \
  -F "timezone=Asia/Kolkata"
```

## Tech Stack

- FastAPI
- spaCy (NLP)
- Python 3.11