Spaces:
Sleeping
Sleeping
| title: Text Summarization | |
| emoji: π¬ | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 5.29.1 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| short_description: For Text Summarization | |
| # π AI Text Summarizer + Named Entity Recognition (NER) | |
| This web app helps users quickly understand large blocks of text by: | |
| - Generating concise summaries using the `bart-large-cnn` model | |
| - Highlighting important entities such as people, organizations, and locations with `dslim/bert-base-NER` | |
| Built with π€ Hugging Face Transformers and Gradio. | |
| --- | |
| ## π Features | |
| - β¨ **Text Summarization** | |
| Automatically condenses long-form text into short, meaningful summaries. | |
| - π§ **Named Entity Recognition (NER)** | |
| Highlights key entities (e.g., names, places, organizations) in the summary for better context. | |
| - π **User-Friendly Interface** | |
| Easy-to-use web interface with live examples. Just paste your text (100+ words), and get insights instantly! | |
| --- | |
| ## π Models Used | |
| - [`facebook/bart-large-cnn`](https://huggingface.co/facebook/bart-large-cnn) β For text summarization | |
| - [`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER) β For named entity recognition | |
| --- | |
| ## π§ How It Works | |
| 1. User inputs at least 100 words of text. | |
| 2. The app summarizes the input using the BART model. | |
| 3. The summary is passed to the BERT model to extract and highlight named entities. | |
| 4. Output is displayed with highlights over the summary text. | |
| --- | |
| ## π» Running Locally | |
| ```bash | |
| git clone https://huggingface.co/spaces/YOUR-USERNAME/YOUR-APP-NAME | |
| cd YOUR-APP-NAME | |
| pip install -r requirements.txt | |
| python app.py | |