philipobiorah commited on
Commit
ab74064
Β·
verified Β·
1 Parent(s): c6e1450

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -13
README.md CHANGED
@@ -7,30 +7,34 @@ sdk: docker
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
 
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