Instructions to use iamrazi/text-moderation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamrazi/text-moderation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="iamrazi/text-moderation")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("iamrazi/text-moderation") model = AutoModelForSequenceClassification.from_pretrained("iamrazi/text-moderation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,10 +16,9 @@ library_name: transformers
|
|
| 16 |
tags:
|
| 17 |
- moderation
|
| 18 |
- abuse_detection
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
-
To use this model follow this.
|
| 22 |
-
|
| 23 |
# Load model directly
|
| 24 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 25 |
|
|
|
|
| 16 |
tags:
|
| 17 |
- moderation
|
| 18 |
- abuse_detection
|
| 19 |
+
---
|
| 20 |
|
| 21 |
|
|
|
|
|
|
|
| 22 |
# Load model directly
|
| 23 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 24 |
|