File size: 2,793 Bytes
7fdc931 06e3ea3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
---
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
[](https://huggingface.co/)
[](https://gradio.app/)
[](https://www.python.org/)
[](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](https://gradio.app)
---
## π 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)
```bash
git clone https://github.com/yourusername/distilbert-sentiment-app.git
cd distilbert-sentiment-app
|