hjLabs AI Playground

Starting the on-device runtime…

Sentiment analysis that runs in your browser

distilbert-base-uncased-finetuned-sst-2-english is the workhorse sentiment classifier — 67 MB, and it returns a positive/negative label with a confidence score in a few milliseconds once loaded. Useful for triaging reviews, support tickets or survey free-text without shipping customer comments to a third-party API. A toxicity model (toxic-bert) is available on the same page when you need to flag abusive content rather than polarity.

sentiment analysis onlinefree sentiment analysis tooldistilbert sst-2text classification browserreview sentiment checkertoxicity detection onlineno api sentiment analysis

Frequently asked questions

Does it handle sarcasm or mixed sentiment?

Poorly, like every binary classifier. SST-2 was trained on movie reviews, so it is confident and often wrong on sarcasm, negation-heavy sentences and text that is positive about one thing and negative about another. Treat the score as a signal, not a verdict.

Is my data uploaded to a server?

No. The model weights are downloaded from Hugging Face to your browser once, and every inference after that runs on your own GPU through WebGPU. Your text, images and audio are never sent anywhere — hjLabs.in has no inference server and no way to see your input.

Models available for this task