Downloads · 30 days
8
6% of all-time downloads
tsak6666/my_first_model
my_first_model is a text classification model from tsak6666. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This is a pre-trained DistilBERT model fine-tuned on the SST-2 dataset for sentiment analysis. It predicts whether a given text expresses positive or negative sentiment.
Downloads · 30 days
8
6% of all-time downloads
All-time downloads
127
Public
Repo size
268 MB
Likes
1
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
This is a pre-trained DistilBERT model fine-tuned on the SST-2 dataset for sentiment analysis. It predicts whether a given text expresses positive or negative sentiment.
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("your_username/my-first-model")
tokenizer = AutoTokenizer.from_pretrained("your_username/my-first-model")
inputs = tokenizer("This movie is great!", return_tensors="pt")
outputs = model(**inputs)