A newer version of the Gradio SDK is available:
5.42.0
metadata
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
- Summarization: Enter any long piece of text, and the model will generate a summary.
- Sentiment Analysis: After summarizing, the sentiment of the summary is evaluated, producing a label (e.g., 'POSITIVE', 'NEGATIVE') and a sentiment score.
Installation
- Clone the repository:
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