I-Am-SnowFlake/text-summarizer101
1
๐ 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:
- Install the required dependencies using
pip:
pip install -r requirements.txt- Launch the Gradio interface:
python app.py- 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.2diffusers>=0.25.0ctransformers[cuda]>=0.2.24Pillow>=9.3.0gradiostreamlit>=1.29.0accelerate>=0.25.0pypdfpeft>=0.6.0
๐ Getting Started
- Clone this repository:
git clone https://github.com/your-username/your-repo.git- Navigate to the project directory:
cd your-repo- Install the dependencies:
pip install -r requirements.txt- Run the application:
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
