Spaces:
Sleeping
Sleeping
File size: 1,651 Bytes
08e4783 e44382c 08e4783 96f3d88 08e4783 96f3d88 08e4783 e44382c 08e4783 96f3d88 08e4783 |
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 |
---
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
|