Update README.md
Browse files
README.md
CHANGED
@@ -7,5 +7,30 @@ sdk: docker
|
|
7 |
pinned: false
|
8 |
short_description: 'BERT-Based Sentiment Analyzer '
|
9 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
7 |
pinned: false
|
8 |
short_description: 'BERT-Based Sentiment Analyzer '
|
9 |
---
|
10 |
+
# **BERT Sentiment Analysis - Flask App**
|
11 |
+
This project is a **Flask-based web application** that performs **sentiment analysis** using a **pre-trained BERT model** hosted on **Hugging Face**. The app can analyze text sentiment from **manual input** or **CSV file uploads**, displaying results in a user-friendly web interface.
|
12 |
+
|
13 |
+
## **🚀 Features**
|
14 |
+
- **Pre-trained BERT Model**: Uses `philipobiorah/bert-imdb-model` from **Hugging Face**.
|
15 |
+
- **Text & File Input**: Accepts **manual text input** and **CSV uploads** for batch processing.
|
16 |
+
- **Sentiment Analysis**: Classifies text as **Positive** or **Negative**.
|
17 |
+
- **Visualization**: Displays sentiment distribution via **bar charts**.
|
18 |
+
- **Web Interface**: Easy-to-use Flask-based UI.
|
19 |
+
|
20 |
+
---
|
21 |
+
|
22 |
+
## **🌍 Model Information**
|
23 |
+
- **Model Name**: [`philipobiorah/bert-imdb-model`](https://huggingface.co/philipobiorah/bert-imdb-model)
|
24 |
+
- **Hosted on**: [Hugging Face Model Hub](https://huggingface.co/philipobiorah/bert-imdb-model)
|
25 |
+
- **Base Model**: `bert-base-uncased`
|
26 |
+
- **Framework**: `transformers` (Hugging Face) + `torch` (PyTorch)
|
27 |
+
|
28 |
+
---
|
29 |
+
|
30 |
+
## **🛠 Installation & Setup**
|
31 |
+
### **1️⃣ Clone the Repository**
|
32 |
+
```bash
|
33 |
+
git clone https://github.com/your-username/bert-sentiment-analysis.git
|
34 |
+
cd bert-sentiment-analysis
|
35 |
|
36 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|