sentiment_analysis / README.md
MoJaff's picture
Update README.md
9633db4 verified

A newer version of the Gradio SDK is available: 5.43.1

Upgrade
metadata
title: Sentiment Analysis
emoji: 🦀
colorFrom: yellow
colorTo: green
sdk: gradio
sdk_version: 5.17.1
app_file: app.py
pinned: false
license: apache-2.0

Article Summarization App

This is a simple web application built with Gradio and Hugging Face's Transformers library that allows users to summarize articles using the facebook/bart-large-cnn model. The app provides an easy-to-use interface where users can input an article, set the minimum and maximum length for the summary, and get a concise summary in return.

How It Works

The app uses the facebook/bart-large-cnn model from Hugging Face's Transformers library to generate summaries. Users can input an article, adjust the desired length of the summary using sliders, and the app will generate a summary based on the provided input.

Features

  • Input Article: Users can paste or type an article into the text box.
  • Adjustable Summary Length: Users can set the minimum and maximum length of the summary using sliders.
  • Example Provided: An example article is provided to demonstrate how the app works.
  • Real-Time Summarization: The app generates the summary in real-time as soon as the user inputs the article and adjusts the sliders.

How to Use

  1. Enter an Article: Paste or type the article you want to summarize into the text box labeled "Enter an article to summarize."
  2. Set Summary Length: Use the sliders to set the minimum and maximum length of the summary.
    • Min Length: The minimum number of words in the summary.
    • Max Length: The maximum number of words in the summary.
  3. Get the Summary: The app will automatically generate a summary based on your input and display it in the output text box.

Example

An example article is provided in the app to help you get started. Simply click on the example, and the app will automatically fill in the article and generate a summary.

Contact

If you have any questions or suggestions, feel free to reach out to me on LinkedIn Logo LinkedIn.