|
--- |
|
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 |
|
|