--- title: Sentiment Analyzer emoji: 🎭 colorFrom: indigo colorTo: pink sdk: gradio sdk_version: 6.19.0 app_file: app.py pinned: false --- # 🎭 Sentiment Analyzer A lightweight text sentiment classifier running DistilBERT (67M params). Type any sentence and get instant positive/negative analysis. **Why this exists:** Small models can do real work. This runs on CPU in milliseconds — no GPU needed, no queue, no waiting. **What I learned building this:** - Loading transformers pipelines for inference - Building clean Gradio interfaces - Deploying to Hugging Face Spaces ## Usage ```python from transformers import pipeline classifier = pipeline( "sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english" ) classifier("This is great!") # [{'label': 'POSITIVE', 'score': 0.9998}] ``` ## Links - **HF Profile:** [arinbalyan](https://huggingface.co/arinbalyan) - **Training Notebook:** Coming soon (Kaggle fine-tune on custom data)