text_summarization / README.md
banjiola's picture
update.Readme
96f3d88 verified

A newer version of the Gradio SDK is available: 5.35.0

Upgrade
metadata
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


πŸ”§ 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

git clone https://huggingface.co/spaces/YOUR-USERNAME/YOUR-APP-NAME
cd YOUR-APP-NAME
pip install -r requirements.txt
python app.py