Transformers
How to use from the
Use from the
Transformers library
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("paarthmadan/Sentiment-Analysis-API", dtype="auto")
Quick Links

Sentiment Analysis API

This is the deployment part of the project.

Training:

Run the Google Colab notebook (Runtime = "GPU") (https://colab.research.google.com/drive/1EuF5FDl1X8VnuOO5RxzmM0c9TbtQrVm9?usp=sharing)

Fine Tuning

  1. Increasing #epochs
  2. Increasing BATCH_SIZE to 32
  3. Changing Adam optimizer rate

Usage

  1. Clone te repository
  2. Set up the conda environment with requirements.txt
  3. In terminal, run the command- uvivorn sentiment_analyzer.api:app --reload
Downloads last month
4
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support