File size: 1,239 Bytes
6f58fba a8e1848 |
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 |
---
license: apache-2.0
title: Text Summarization and Sentiment Analysis
sdk: gradio
emoji: 💻
colorFrom: green
colorTo: green
short_description: This repository contains a Gradio-based web application that
---
# Gradio Interface for Text Summarization and Sentiment Analysis
This repository contains a Gradio-based web application that performs both text summarization and sentiment analysis using the Hugging Face transformers library. The summarization is based on `facebook/bart-large-cnn`, and sentiment analysis is done using Hugging Face’s default sentiment analysis pipeline.
## Features
- Summarize long texts into concise summaries.
- Analyze the sentiment of the summarized text.
- Gradio interface for easy interaction.
## How It Works
1. **Summarization**: Enter any long piece of text, and the model will generate a summary.
2. **Sentiment Analysis**: After summarizing, the sentiment of the summary is evaluated, producing a label (e.g., 'POSITIVE', 'NEGATIVE') and a sentiment score.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name
## Hugging Face:
https://huggingface.co/spaces/fahad11182/Text_Summarization_and_Sentiment |