An open API service indexing awesome lists of open source software.

https://github.com/engichang1467/text-summarization-distilbart-cnn

Summarize any text using the distilbart-cnn-12-6 model under the hood
https://github.com/engichang1467/text-summarization-distilbart-cnn

distilbert huggingface text-summarization

Last synced: 7 months ago
JSON representation

Summarize any text using the distilbart-cnn-12-6 model under the hood

Awesome Lists containing this project

README

          

# Text Summarization with DistilBART-CNN

Welcome to the Text Summarization with DistilBART-CNN project! This project leverages the power of the [`sshleifer/distilbart-cnn-12-6`](https://huggingface.co/sshleifer/distilbart-cnn-12-6) model to generate summaries from any text input.

## Getting Started

### Environment Setup

To get started, create a virtual environment and activate it:

```bash
virtualenv venv
source venv/bin/activate
```

### Install Dependencies

Next, install the required dependencies using pip:

```bash
pip install -r requirements.txt
```

### Run the Application

Now, you can run the application:

```bash
gradio app.py
```

This will start the application, allowing you to input text and receive a summary generated by the DistilBART-CNN model.

## Usage

Simply input the text you want to summarize into the application's interface. The model will then process the input and provide a concise summary of the text.

## Additional Resources

- Check out the model on [![Hugging Face Spaces](https://img.shields.io/badge/🤗%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/mca183/text-summarization-distilbart-cnn).
- Check out the Colab notebook for this project on [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/engichang1467/text-summarization-distilbart-cnn/blob/main/colab/test.ipynb)
- Explore more about the DistilBART-CNN model [here](https://huggingface.co/sshleifer/distilbart-cnn-12-6).

Feel free to reach out if you have any questions or feedback!