Spaces:
Sleeping
Sleeping
| 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) |