Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	| 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/). | |