Dhruv Singh
Upload folder using huggingface_hub
1db0c1f verified
|
Raw
History Blame Contribute Delete
712 Bytes

A newer version of the Gradio SDK is available: 6.25.0

Upgrade
metadata
title: Beginner Sentiment Analyzer
emoji: 🤗
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.0.0
app_file: app.py
pinned: false

Beginner Sentiment Analyzer

A beginner-friendly sentiment analysis project built using Hugging Face Transformers, DistilBERT, PyTorch, and Gradio.

Features

  • Classifies English text as positive or negative
  • Shows confidence scores
  • Includes example sentences
  • Handles empty and excessively long input
  • Runs locally or on Hugging Face Spaces

Model

This project uses:

distilbert/distilbert-base-uncased-finetuned-sst-2-english

Run locally

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py