File size: 1,395 Bytes
ea404d7 ab74064 c6e1450 ab74064 c6e1450 ab74064 c6e1450 ab74064 c6e1450 ab74064 c6e1450 ab74064 ea404d7 |
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 |
---
title: Bert Sentiment Analysis
emoji: π¦
colorFrom: pink
colorTo: green
sdk: docker
pinned: false
short_description: 'BERT-Based Sentiment Analyzer '
---
# π **BERT Sentiment Analysis - Hugging Face Spaces**
This is a **Flask-based web application** that performs **sentiment analysis** using a **pre-trained BERT model** from Hugging Face.
π **Model Used**: [`philipobiorah/bert-imdb-model`](https://huggingface.co./philipobiorah/bert-imdb-model)
π **Live App**: [**Try it on Hugging Face Spaces**](https://huggingface.co./spaces/philipobiorah/bert-imdb-model)
---
## π **How It Works**
1. **Enter a text** in the input field OR **upload a CSV file**.
2. The model classifies the sentiment as **Positive** or **Negative**.
3. If a file is uploaded, results are displayed in a **bar chart**.
---
## βοΈ **Model Details**
- **Model Name**: [`philipobiorah/bert-imdb-model`](https://huggingface.co./philipobiorah/bert-imdb-model)
- **Base Model**: `bert-base-uncased`
- **Framework**: `transformers` (Hugging Face) + `torch` (PyTorch)
- **Task**: Binary Sentiment Classification (**Positive / Negative**)
---
## π¦ **Running Locally**
### **1οΈβ£ Clone the Repository**
```bash
git clone https://huggingface.co./spaces/philipobiorah/bert-imdb-model
cd bert-imdb-model
Check out the configuration reference at https://huggingface.co./docs/hub/spaces-config-reference
|