ABKUMA01/BE500Project1
0
Article Summarizer via facebook/bart-large-cnn
This is an interactive Gradio web app that can summarize articles and paragraphs concisely and accurately. It uses a pretrained model, facebook/bart-large-cnn, from the Hugging Face Hub to do the text summarization.
Objective
The goal of this web app is to demonstrate how to use a pretrained transformer model into a user-friendly Gradio interface and deploy it on Hugging Face Spaces.
Model Information
- Model Name: facebook/bart-large-cnn
- Task: Text summarization
- Framework: Hugging Face Transformers
- Training Data: abisee/cnn_dailymail
- License: mit
Run Locally
- Copy this repository or download the files.
- Install the required dependencies: pip install -r requirements.txt
- Run the app: python app.py
- Click on the url displayed in the terminal
Limitations
- The summarizer may incorrectly/inaccurately rephrase sentences for longer documents.
- BART's context window is limited to ~1024 tokens.
Credits
- Model: facebook/bart-large-cnn (Hugging Face)
- Interface: Gradio
- Author: Arjun Kumar
