File size: 1,199 Bytes
dfbb2da |
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 43 44 |
---
title: YouTube Summarizer API
emoji: π¬
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 7860
---
# YouTube Video Summarizer API
A multilingual Flask API for summarizing YouTube videos using AI.
## Features
- π€ **Speech-to-Text**: Whisper for videos without subtitles
- π **11 Languages**: English + 10 Indian languages
- π **Translation**: NLLB-200 for multilingual support
- π€ **AI Summarization**: Groq LLaMA 3.1
## API Endpoints
| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/` | Health check |
| GET | `/api/health` | API status |
| GET | `/api/languages` | Supported languages |
| POST | `/api/transcript` | Extract transcript |
| POST | `/api/translate` | Translate text |
| POST | `/api/summarize` | Generate summary |
| POST | `/api/process` | Full pipeline |
## Usage
```bash
curl -X POST https://YOUR-SPACE.hf.space/api/process \
-H "Content-Type: application/json" \
-d '{"url": "https://youtube.com/watch?v=VIDEO_ID", "summary_type": "bullet_points"}'
```
## Models Used
- **Whisper**: openai/whisper-small (~500MB)
- **NLLB-200**: facebook/nllb-200-distilled-600M (~2.4GB)
- **Summarization**: Groq API (LLaMA 3.1)
|