Spaces:
Runtime error
Runtime error
File size: 1,492 Bytes
1c0028a 2c70724 1c0028a 2c70724 1c0028a 2c70724 1c0028a 2c70724 | 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 | ---
title: IMDB Sentiment Classifier
emoji: π¬
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.0.0
app_file: app.py
pinned: false
license: mit
---
# π¬ IMDB Sentiment Classifier
A binary sentiment classifier fine-tuned on the IMDB movie reviews dataset using LoRA (Low-Rank Adaptation) with DistilBERT (β€ 110M parameters).
## π About the Model
- **Model Type:** Binary Sentiment Classification
- **Base Model:** `distilbert-base-uncased`
- **Training Dataset:** IMDB Dataset (50K movie reviews)
- **Task:** Classify text as Positive or Negative sentiment
- **Fine-tuning Method:** LoRA (Low-Rank Adaptation)
- **Parameters:** ~66M total, ~890K trainable with LoRA
## π Features
- **Single Review Analysis:** Enter any movie review text
- **Batch Processing:** Analyze multiple reviews at once
- **File Upload:** Upload `.txt` or `.csv` files for analysis
- **Confidence Scores:** See how confident the model is
- **Visual Feedback:** Color-coded results with emojis
## π Example Results
| Review | Sentiment | Confidence |
|--------|-----------|------------|
| "This movie was absolutely fantastic!" | Positive π | 98% |
| "Terrible film, waste of time." | Negative π | 95% |
| "Average movie, nothing special." | Negative π | 72% |
## π οΈ Technical Details
### Model Architecture
```python
Model: DistilBERT + LoRA
- Base: distilbert-base-uncased
- LoRA Rank: 8
- Trainable Parameters: ~890K (1.35% of total)
- Max Sequence Length: 256 tokens |