transformers pytorch autotrain text-classification

Model Trained Using AutoTrain

Validation Metrics

Usage

This model was trained on a random subset of the told-br dataset (1/3 of the original size). Our main objective is to provide a small model that can be used to classify Brazilian Portuguese tweets in a binary way ('toxic' or 'non toxic').

You can use cURL to access this model:

$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/alexandreteles/autotrain-told_br_binary_sm-2489276793

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("alexandreteles/told_br_binary_sm")

tokenizer = AutoTokenizer.from_pretrained("alexandreteles/told_br_binary_sm")

inputs = tokenizer("I love AutoTrain", return_tensors="pt")

outputs = model(**inputs)