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