A FastAPI-based sentiment analysis API built using a fine-tuned BERT model.
The model is trained on the IMDB dataset and can classify text as Positive or Negative.
- Fine-tuned
bert-base-uncasedmodel using Hugging Face Transformers. - REST API built with FastAPI.
- Predicts sentiment with confidence scores.
- Easy to deploy locally or on cloud (e.g. AWS, Render, Railway).
- Python 3.10+
- Hugging Face Transformers & Datasets
- PyTorch
- FastAPI + Uvicorn
git clone https://github.com/svd009/Sentiment-Classifier.git
cd Sentiment-Classifier