Text Classification
Transformers
Safetensors
PyTorch
English
toxicity
profanity
content-moderation
hate-speech
multi-label-classification
Instructions to use Qarvexium/NoInsult with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qarvexium/NoInsult with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Qarvexium/NoInsult")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Qarvexium/NoInsult", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| from NoInsult import predict | |
| result = predict("I will fuck you up, you piece of shit.") | |
| print(result["flags"]) # {'toxicity': True, 'severe_toxicity': False, ...} | |
| print(result["scores"]) # raw sigmoid probabilities per label |