File size: 3,129 Bytes
3bb7219
 
 
 
 
 
 
 
 
 
 
 
6e1bee9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3bb7219
9155967
 
 
1b78f8a
c6a6747
8e69e99
2eae00c
d4f807f
1759d44
1b12be9
7988d52
9155967
 
 
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
---
title: CPU Only TextSummarization
emoji: πŸƒ
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: CPU-only Text Summarization
---
# πŸ“ Text Summarization Demo  
[![Hugging Face Space](https://img.shields.io/badge/HuggingFace-Spaces-blue?logo=huggingface)](https://huggingface.co/spaces/your-username/text-summarizer)  
[![Gradio UI](https://img.shields.io/badge/Gradio-5.31.0-brightgreen?logo=gradio)]  
[![Model](https://img.shields.io/badge/Model-DistilBART--CNN-orange)](https://huggingface.co/sshleifer/distilbart-cnn-12-6)  
[![License](https://img.shields.io/badge/License-MIT-lightgrey)](LICENSE)

---

## πŸš€ Overview  
Leverage **Transformer-based NLP** to condense long text into a crisp summary.  
Ideal for articles, reports, or meeting notesβ€”runs entirely on **free CPU**.

> **Key AI buzzwords:**  
> β€’ Distilled BART β€’ Abstractive Summarization β€’ Sequence-to-Sequence β€’ Real-time inference β€’ Edge deployment β€’ Cloud-native demo  

---

## ✨ Features

| πŸ”‘ Feature               | πŸ” Description                                                  |
|--------------------------|------------------------------------------------------------------|
| **🧠 Distilled BART**      | Uses `sshleifer/distilbart-cnn-12-6` for fast, accurate summaries |
| **⚑ CPU-Only Inference**   | <500 ms per 500 words on a free-tier Space CPU                  |
| **πŸŽ›οΈ Adjustable Length**   | Control summary brevity with max/min token sliders              |
| **🎨 Clean UI**           | Gradio Blocks for seamless text input & output                  |
| **☁️ Instant Deploy**      | Push three filesβ€”Spaces auto-builds & hosts your demo           |

---

## πŸ—οΈ Architecture & Workflow

1. **User Input** – Paste or type in any long-form text.  
2. **Summarization Pipeline** – FFN-based encoder-decoder distills the core idea.  
3. **Parameter Controls** – Adjust `max_length`/`min_length` for conciseness.  
4. **UI Rendering** – Gradio displays the summary for instant copy/paste.

All computation occurs **locally in the Space**, ensuring **privacy** and **zero API costs**.

---

## πŸ› οΈ Local Development

```bash
git clone https://github.com/your-username/text-summarizer.git
cd text-summarizer
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
python app.py

## Latest Update

- Upgraded DistilBART model for better summaries. - May 29, 2025 πŸ“
- Optimized summarization speed on CPU. 🧠 - June 06, 2025 πŸ“
- Enhanced UI for longer text inputs. - June 05, 2025 πŸ“
- Improved token length control sliders. - June 04, 2025 πŸ“
- Upgraded DistilBART model for better summaries. πŸŽ›οΈ - June 03, 2025 πŸ“
- Added support for multi-paragraph inputs. ☁️ - June 02, 2025 πŸ“
- Optimized summarization speed on CPU. πŸ“ - June 01, 2025 πŸ“
- Enhanced UI for longer text inputs. ⚑ - May 31, 2025 πŸ“
- Improved token length control sliders. - May 30, 2025 πŸ“

**Website**: https://ghostainews.com/
**Discord**: https://discord.gg/BfA23aYz