--- 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/).