Instructions to use mohsenfayyaz/toxicity-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohsenfayyaz/toxicity-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mohsenfayyaz/toxicity-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mohsenfayyaz/toxicity-classifier") model = AutoModelForSequenceClassification.from_pretrained("mohsenfayyaz/toxicity-classifier") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
e4405ad | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:e141176e330758c0e9146b41bf8475f6db9696344a0d4c5135751693e1828bd8
size 437942328
|