Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.1.0
metadata
title: Text Summarizer App
emoji: ✂️
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 4.28.0
app_file: app.py
pinned: false
✂️ Text Summarization with Hugging Face Transformers
This is a beginner-friendly NLP project demonstrating how to perform text summarization using Hugging Face’s transformers pipeline. It uses a pretrained DistilBART model to condense long-form text into short, readable summaries.
🚀 What This Space Does
- Uses the 🤗
pipeline()API for summarization - Leverages the pretrained model:
sshleifer/distilbart-cnn-12-6 - Takes a block of input text and returns a concise summary
- Built with Gradio for an interactive UI experience
🧠 How to Use It
- Enter a paragraph or article in the textbox
- Click Submit to generate a summary
- Try experimenting with different types of text (news, blog posts, etc.)
- Use the summary output as a reference, abstract, or TL;DR
💡 What You'll Learn
- How to use Hugging Face
pipeline()for text summarization - How summarization models work in NLP
- How to quickly turn Python code into a usable web app with Gradio
📚 Model Details
- Model:
sshleifer/distilbart-cnn-12-6 - Type: Abstractive summarization
- Base Architecture: DistilBART (a distilled version of Facebook’s BART model)
🙌 Author
Built by Snehal Bandekar
As part of a hands-on learning series with Hugging Face 🤗