Spaces:
Sleeping
Sleeping
metadata
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
β¨ 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
- Deployment: Hugging Face Spaces
πββοΈ Quick Start
Prerequisites
Python 3.8+
pip
Installation
- Clone the repository:
git clone https://github.com/Ashish-Soni08/text-summarization-app.git
cd text-summarization-app
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
- Open your browser and navigate to
http://localhost:7860
π Usage
- Input Text: Paste or type the text you want to summarize in the input box
- Generate Summary: Click the "Submit" button
- 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 for the Transformers library and model hosting
- Gradio for the web interface framework
- Original BART paper authors for the foundational research
π Contact
Ashish Soni - [email protected]
Project Link: text-summarization