Update README.md
Browse files
README.md
CHANGED
|
@@ -7,30 +7,34 @@ sdk: docker
|
|
| 7 |
pinned: false
|
| 8 |
short_description: 'BERT-Based Sentiment Analyzer '
|
| 9 |
---
|
| 10 |
-
# **BERT Sentiment Analysis -
|
| 11 |
-
This
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 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 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
##
|
| 31 |
### **1οΈβ£ Clone the Repository**
|
| 32 |
```bash
|
| 33 |
-
git clone https://
|
| 34 |
-
cd bert-
|
|
|
|
| 35 |
|
| 36 |
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 - Hugging Face Spaces**
|
| 11 |
+
This is a **Flask-based web application** that performs **sentiment analysis** using a **pre-trained BERT model** from Hugging Face.
|
| 12 |
|
| 13 |
+
π **Model Used**: [`philipobiorah/bert-imdb-model`](https://huggingface.co/philipobiorah/bert-imdb-model)
|
| 14 |
+
π **Live App**: [**Try it on Hugging Face Spaces**](https://huggingface.co/spaces/philipobiorah/bert-imdb-model)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
---
|
| 17 |
|
| 18 |
+
## π **How It Works**
|
| 19 |
+
1. **Enter a text** in the input field OR **upload a CSV file**.
|
| 20 |
+
2. The model classifies the sentiment as **Positive** or **Negative**.
|
| 21 |
+
3. If a file is uploaded, results are displayed in a **bar chart**.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## βοΈ **Model Details**
|
| 26 |
- **Model Name**: [`philipobiorah/bert-imdb-model`](https://huggingface.co/philipobiorah/bert-imdb-model)
|
|
|
|
| 27 |
- **Base Model**: `bert-base-uncased`
|
| 28 |
- **Framework**: `transformers` (Hugging Face) + `torch` (PyTorch)
|
| 29 |
+
- **Task**: Binary Sentiment Classification (**Positive / Negative**)
|
| 30 |
|
| 31 |
---
|
| 32 |
|
| 33 |
+
## π¦ **Running Locally**
|
| 34 |
### **1οΈβ£ Clone the Repository**
|
| 35 |
```bash
|
| 36 |
+
git clone https://huggingface.co/spaces/philipobiorah/bert-imdb-model
|
| 37 |
+
cd bert-imdb-model
|
| 38 |
+
|
| 39 |
|
| 40 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|