Spaces:
Sleeping
Sleeping
File size: 1,917 Bytes
da5a98f 807c692 da5a98f |
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 61 62 63 64 65 66 67 68 69 |
---
title: Text Summarizer
emoji: 🏢
colorFrom: gray
colorTo: gray
sdk: gradio
sdk_version: 5.5.0
app_file: app.py
pinned: false
license: apache-2.0
---
# Text Summarization App
This is a simple app that uses the `facebook/bart-large-cnn` model from Hugging Face to summarize long-form text. The app takes an article, paper, or book, and summarizes it into key points or a concise paragraph.
## Features
- Summarizes long text into a short, readable summary.
- Works on various kinds of text (articles, papers, books).
- Uses Hugging Face's BART model for high-quality summaries.
- Provides a simple and user-friendly interface built with Gradio.
## How It Works
1. The user inputs a long-form text (article, paper, or book) in the provided input box.
2. The app processes the input using the `facebook/bart-large-cnn` model.
3. A summarized version of the text is displayed as output.
## Setup and Installation
1. Clone the repository:
```bash
git clone https://huggingface.co/spaces/your-username/Text-Summarization-App
cd Text-Summarization-App
```
2. Install the dependencies from `requirements.txt`:
```bash
pip install -r requirements.txt
```
3. Run the app locally:
```bash
python app.py
```
4. To deploy on Hugging Face Spaces, just upload your code and the necessary files to the Hugging Face Space and it will be ready to use.
## Technologies Used
- **Gradio**: For the user interface.
- **Hugging Face Transformers**: For using the pre-trained BART model for summarization.
- **PyTorch**: Deep learning framework used for running the BART model.
## Example
Input: "Long article text here..."
Output: "Concise summary of the article here..."
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|