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