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
[](https://huggingface.co/spaces/your-username/text-summarizer)
[]
[](https://huggingface.co/sshleifer/distilbart-cnn-12-6)
[](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 |