Spaces:
Configuration error
Configuration error
| 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 | |
| ```bash | |
| python -m venv .venv | |
| source .venv/bin/activate | |
| pip install -r requirements.txt | |
| python app.py |