| 
							 | 
						--- | 
					
					
						
						| 
							 | 
						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 π | 
					
					
						
						| 
							 | 
						- Improved token length control sliders. π§  - June 09, 2025 π | 
					
					
						
						| 
							 | 
						- Upgraded DistilBART model for better summaries. βοΈ - June 08, 2025 π | 
					
					
						
						| 
							 | 
						- Added support for multi-paragraph inputs. - June 07, 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 |