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