metadata
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
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)