Spaces:
Configuration error
Configuration error
|
Download README.md from devotedhruv/beginner-sentiment-analyzer: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/devotedhruv/beginner-sentiment-analyzer/resolve/main/README.md
- Command line
-
hf download hf://spaces/devotedhruv/beginner-sentiment-analyzer/README.md
-
curl -L -o README.md https://huggingface.co/spaces/devotedhruv/beginner-sentiment-analyzer/resolve/main/README.md
712 Bytes
A newer version of the Gradio SDK is available: 6.31.0
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