Text Classification
Transformers
Safetensors
English
distilbert
Transformers
PyTorch
safety
innapropriate
DiffGuard
Eval Results (legacy)
text-embeddings-inference
Not-For-All-Audiences
Instructions to use eliasalbouzidi/distilbert-nsfw-text-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eliasalbouzidi/distilbert-nsfw-text-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="eliasalbouzidi/distilbert-nsfw-text-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("eliasalbouzidi/distilbert-nsfw-text-classifier") model = AutoModelForSequenceClassification.from_pretrained("eliasalbouzidi/distilbert-nsfw-text-classifier", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Add model name, paper link and citation instructions
#2
by Meeex2 - opened
Not-For-All-Audiences
This repository has been marked as containing sensitive content and may contain potentially harmful and sensitive information.
View content