Team Ai
Apppublic

I-Am-SnowFlake/text-summarizer101

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
1likes
App README

๐Ÿ“ Text Summarization with DistilBART

This project demonstrates text summarization using the DistilBART model from Hugging Face Transformers, integrated with Gradio for a user-friendly interface.

๐Ÿš€ Overview

The application allows users to input text and obtain a concise summary using the DistilBART-CNN-12-6 model. The summarization model is fine-tuned and accessible through the Hugging Face Transformers library.

๐Ÿ’ป Usage

To run the text summarization interface locally, follow these steps:

  1. 1.Install the required dependencies using pip:
bash
    pip install -r requirements.txt
  1. 1.Launch the Gradio interface:
bash
    python app.py
  1. 1.Access the interface in your web browser at http://localhost:7860.

๐Ÿ“‹ Requirements

Ensure you have the following libraries installed (specified in requirements.txt):

  • โ€”transformers>=4.36.2
  • โ€”diffusers>=0.25.0
  • โ€”ctransformers[cuda]>=0.2.24
  • โ€”Pillow>=9.3.0
  • โ€”gradio
  • โ€”streamlit>=1.29.0
  • โ€”accelerate>=0.25.0
  • โ€”pypdf
  • โ€”peft>=0.6.0

๐Ÿ Getting Started

  1. 1.Clone this repository:
bash
    git clone https://github.com/your-username/your-repo.git
  1. 1.Navigate to the project directory:
bash
    cd your-repo
  1. 1.Install the dependencies:
bash
    pip install -r requirements.txt
  1. 1.Run the application:
bash
    python app.py

๐Ÿ™Œ Acknowledgments

  • โ€”This project uses the DistilBART-CNN-12-6 model from Hugging Face Transformers.
  • โ€”Gradio is utilized for creating the interactive text summarization interface.

๐Ÿ“„ License

This project is licensed under the Apache License 2.0.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference