CoolFace
Modelpublic

Wadden/distilbert-sentiment-demo

sourceHugging Faceapache-2.0updated 18d agoView on Hugging Face
0likes63downloads
Model Card

DistilBERT Sentiment Classifier

Fine-tuned distilbert-base-uncased for 2 epochs on the official rotten_tomatoes splits. Labels are NEGATIVE (0) and POSITIVE (1).

Test result

MetricValue
Accuracy0.8499

Usage

from transformers import pipeline classifier = pipeline("sentiment-analysis", model="Wadden/distilbert-sentiment-demo") classifier("This movie was fantastic!")

Interactive demo

The quantized ONNX export is executed directly in the browser with Transformers.js:

[Open the interactive Space](https://huggingface.co/spaces/Wadden/distilbert-sentiment-space)