Spaces:
Running
Running
File size: 1,861 Bytes
256ba72 4ea12b7 256ba72 |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
---
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/).
|