Link-to-video / README.md
RohitCSharp's picture
Update README.md
4ea12b7 verified
|
raw
history blame
1.86 kB
---
title: Link To Video
emoji: πŸ‘
colorFrom: yellow
colorTo: gray
sdk: gradio
sdk_version: 5.34.2
app_file: app.py
pinned: false
license: mit
---
# 🎬 URL to AV Summary Agent
This project is a LangChain-powered app that takes an article URL, generates a clean summary, and turns it into an auto-narrated video using `gTTS` and `moviepy`. Fully CPU-compatible and ready to deploy on Hugging Face Spaces.
---
## πŸš€ Features
- πŸ”— Accepts any blog or article URL
- 🧹 Cleans non-article elements (menus, headers, footers)
- 🧠 Summarizes with `flan-t5-base` (CPU-friendly)
- πŸ”Š Generates speech with `gTTS`
- πŸŽ₯ Creates a 720p narrated video with summary overlay
- πŸ–₯️ 100% CPU-only β€” no GPU or API keys required
---
## πŸ“¦ Installation
### `requirements.txt`
```txt
gradio
langchain
transformers
torch
sentencepiece
beautifulsoup4
requests
gtts
moviepy
```
Run with:
```bash
pip install -r requirements.txt
python app.py
```
---
## ✨ Usage
1. Paste the article/blog URL.
2. App scrapes only relevant text.
3. Generates a plain text summary.
4. Converts it into speech + video.
5. Download or preview the `.mp4` AV summary.
---
## 🧠 Models Used
- `google/flan-t5-base` for summarization
- `gTTS` (Google Text-to-Speech)
---
## πŸ”₯ SEO Tags
`AI video summarizer`, `article to video`, `URL to AV summary`, `LangChain video agent`, `text-to-video`, `gTTS + moviepy`, `Hugging Face CPU agent`
---
## πŸ“ Ideal Use Cases
- Content marketing automation
- News summarization
- Voice-based edtech briefs
- Text-to-video content for social media
---
## πŸͺͺ License
MIT β€” fork, remix, and deploy freely.
---
## πŸ™Œ Credits
Built with [LangChain](https://www.langchain.com/), [Transformers](https://huggingface.co/transformers/), [gTTS](https://pypi.org/project/gTTS/), and [MoviePy](https://zulko.github.io/moviepy/).