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