Spaces:
Running
Running
File size: 3,087 Bytes
308ec37 01ca5a7 308ec37 5352c60 ee88482 5352c60 5d0a258 5352c60 c81ad8e 5352c60 c81ad8e 5352c60 c81ad8e 5352c60 c81ad8e 5d0a258 c81ad8e 5352c60 c81ad8e 5352c60 c81ad8e 5352c60 c81ad8e 5352c60 c81ad8e 5352c60 |
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
---
title: Text Summarizer
emoji: πβ‘οΈβοΈ
colorFrom: green
colorTo: purple
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: false
license: apache-2.0
---
# Text Summarization App πβοΈ
A web-based text summarization tool that uses state-of-the-art NLP models to generate concise summaries from long-form text. Built with Gradio and deployed on Hugging Face Spaces.

## π Live Demo
Try the app: [text-summarization](https://huggingface.co/spaces/ashish-soni08/Text-Summarizer)
## β¨ Features
- **Instant Summarization**: Generate concise summaries from lengthy text in seconds
- **Clean Interface**: Intuitive web UI built with Gradio
- **Pre-trained Model**: Uses DistilBART-CNN for high-quality summarization
- **Responsive Design**: Works on desktop and mobile devices
## π οΈ Technology Stack
- **Backend**: Python, Hugging Face Transformers
- **Frontend**: Gradio
- **Model**: [DistilBART-CNN-12-6](https://huggingface.co/sshleifer/distilbart-cnn-12-6)
- **Deployment**: Hugging Face Spaces
## πββοΈ Quick Start
### Prerequisites
```bash
Python 3.8+
pip
```
### Installation
1. Clone the repository:
```bash
git clone https://github.com/Ashish-Soni08/text-summarization-app.git
cd text-summarization-app
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Run the application:
```bash
python app.py
```
4. Open your browser and navigate to `http://localhost:7860`
## π Usage
1. **Input Text**: Paste or type the text you want to summarize in the input box
2. **Generate Summary**: Click the "Submit" button
3. **View Results**: The summarized text will appear in the output section
### Example
**Input:**
```
Artificial Intelligence has been transforming industries across the globe...
[Your example text here]
```
**Output:**
```
AI is rapidly growing and transforming healthcare, finance, and transportation through machine learning advances.
```
## π§ Model Information
This app uses DistilBART-CNN-12-6 (sshleifer/distilbart-cnn-12-6), a distilled version of Facebook's BART model:
- Architecture: 12-layer encoder, 6-layer decoder transformer
- Parameters: ~306 million parameters
- Training Data: CNN/Daily Mail dataset
- Performance: Rouge-2: 21.26, Rouge-L: 30.59
- Speed: ~1.24x faster than full BART-large while maintaining competitive quality
## π Project Structure
```
text-summarization-app/
βββ app.py # Main Gradio application
βββ requirements.txt # Python dependencies
βββ README.md # Project documentation
```
## π License
This project is licensed under the Apache License 2.0
## π Acknowledgments
- [Hugging Face](https://huggingface.co/) for the Transformers library and model hosting
- [Gradio](https://gradio.app/) for the web interface framework
- Original BART paper authors for the foundational research
## π Contact
Ashish Soni - [email protected]
Project Link: [text-summarization](https://github.com/Ashish-Soni08/text-summarization-app) |