Upload 8 files 2d117a7 verified
tweetpy commited on
How to use tweetpie/toxic-content-detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tweetpie/toxic-content-detector") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tweetpie/toxic-content-detector")
model = AutoModelForSequenceClassification.from_pretrained("tweetpie/toxic-content-detector")