disilbert / README.md
ghostai1's picture
Update README.md
06e3ea3 verified

A newer version of the Gradio SDK is available: 5.42.0

Upgrade
metadata
title: Disilbert
emoji: πŸ†
colorFrom: purple
colorTo: purple
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: smaller bert

DistilBERT Sentiment Analysis App with Live Logs & Visualization

Hugging Face Gradio Python License


πŸš€ Overview

Welcome to the DistilBERT Sentiment Analysis App β€” a sleek, lightweight, and CPU-friendly application designed to provide real-time sentiment analysis powered by Hugging Face's DistilBERT model fine-tuned on SST-2.

This app is ideal for anyone looking to quickly analyze text sentiment, especially in domains like salon product reviews, customer feedback, or social media posts. Its intuitive interface features:

  • Instant sentiment classification with confidence scores
  • Live session logging of all analyses performed
  • Dynamic, easy-to-understand sentiment distribution visualization
  • Clean, responsive UI built with Gradio

πŸ“š Why This App?

Sentiment analysis helps businesses gauge customer emotions and feedback trends efficiently. Using this app, you can:

  • Identify positive vs. negative feedback instantly
  • Monitor evolving sentiment trends during live sessions
  • Gain insights visually with a real-time bar chart
  • Deploy and run easily on free Hugging Face Spaces or on any CPU machine

βš™οΈ Features

Feature Description
DistilBERT backend Uses a lightweight, fast transformer model
Real-time sentiment analysis Processes input text and returns label + confidence
Session logging Maintains an interactive log of all analyses
Visual sentiment distribution Updates a bar chart showing counts of positive and negative labels
User-friendly Gradio UI Simple interface optimized for clarity and usability
CPU optimized Perfect for free Hugging Face Spaces or low-resource machines

πŸ› οΈ Installation & Setup

Prerequisites

  • Python 3.7 or higher
  • Git (optional, for cloning repo)

Installation Steps

  1. Clone the repository (or download the source)
git clone https://github.com/yourusername/distilbert-sentiment-app.git
cd distilbert-sentiment-app