Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -10,5 +10,84 @@ pinned: false
|
|
10 |
license: mit
|
11 |
short_description: URL to Audio Summary Agent
|
12 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
10 |
license: mit
|
11 |
short_description: URL to Audio Summary Agent
|
12 |
---
|
13 |
+
# π£οΈ URL to Audio Summary Agent (LangChain + Hugging Face)
|
14 |
+
|
15 |
+
This project is an advanced LangChain-powered agent that takes any article/blog URL, summarizes it using a CPU-friendly language model, and generates a spoken audio summary. Designed to run entirely on **CPU**, it's perfect for deploying on **Hugging Face Spaces**.
|
16 |
+
|
17 |
+
---
|
18 |
+
|
19 |
+
## π Features
|
20 |
+
|
21 |
+
- π Fetches and parses web content from any URL
|
22 |
+
- π§ Summarizes long articles using `flan-t5-base`
|
23 |
+
- π Converts summaries into speech using `espnet/kan-bayashi_ljspeech_vits`
|
24 |
+
- π₯οΈ CPU-only β no GPU or API keys required
|
25 |
+
- π§± Built using LangChain, Gradio, Transformers
|
26 |
+
|
27 |
+
---
|
28 |
+
|
29 |
+
## π Tech Stack
|
30 |
+
|
31 |
+
- **LangChain**: Document loader, prompt chaining
|
32 |
+
- **Transformers**: `flan-t5-base` for summarization
|
33 |
+
- **ESPnet/VITS**: Natural-sounding voice TTS model
|
34 |
+
- **Gradio**: Easy interface for Hugging Face Spaces
|
35 |
+
|
36 |
+
---
|
37 |
+
|
38 |
+
## π§© Usage
|
39 |
+
|
40 |
+
1. Paste any blog or article URL (e.g. from Medium, BBC, etc.)
|
41 |
+
2. The agent will:
|
42 |
+
- Load and extract article content
|
43 |
+
- Summarize the article intelligently
|
44 |
+
- Convert the summary into audio
|
45 |
+
3. You get both:
|
46 |
+
- π Text Summary
|
47 |
+
- π Downloadable Audio Summary (WAV)
|
48 |
+
|
49 |
+
---
|
50 |
+
|
51 |
+
## π¦ Installation
|
52 |
+
|
53 |
+
To run locally or on Spaces:
|
54 |
+
|
55 |
+
### `requirements.txt`
|
56 |
+
```txt
|
57 |
+
gradio
|
58 |
+
langchain
|
59 |
+
transformers
|
60 |
+
torch
|
61 |
+
sentencepiece
|
62 |
+
beautifulsoup4
|
63 |
+
```
|
64 |
+
|
65 |
+
---
|
66 |
+
|
67 |
+
## π‘ SEO Tags
|
68 |
+
`AI article summarizer`, `Text-to-Speech summarizer`, `LangChain agent`, `Hugging Face CPU summarizer`, `URL to audio`, `audio content AI`, `gradio langchain tts`
|
69 |
+
|
70 |
+
---
|
71 |
+
|
72 |
+
## π§ Example Models Used
|
73 |
+
- `google/flan-t5-base` (Summarization)
|
74 |
+
- `espnet/kan-bayashi_ljspeech_vits` (TTS)
|
75 |
+
|
76 |
+
---
|
77 |
+
|
78 |
+
## π Ideal For
|
79 |
+
- Podcasters turning news into voice
|
80 |
+
- Accessibility tools
|
81 |
+
- EdTech content summarization
|
82 |
+
- Personal AI readers
|
83 |
+
|
84 |
+
---
|
85 |
+
|
86 |
+
## πͺͺ License
|
87 |
+
MIT β fork, remix, and deploy freely.
|
88 |
+
|
89 |
+
---
|
90 |
+
|
91 |
+
## π Credits
|
92 |
+
Built using [LangChain](https://www.langchain.com/) and [Hugging Face Transformers](https://huggingface.co/transformers/).
|
93 |
|
|