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
Upload moderation_layer_v2-encoder.npy
Browse files
moderation_layer_v2-encoder.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d39cfe2e60d45b3c6c482d79419d49ac514639e2fea8982e216c76045b542400
|
| 3 |
+
size 336
|