Instructions to use KoalaAI/Text-Moderation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KoalaAI/Text-Moderation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KoalaAI/Text-Moderation")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KoalaAI/Text-Moderation") model = AutoModelForSequenceClassification.from_pretrained("KoalaAI/Text-Moderation") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
430b7ae
1
Parent(s): c1fc045
update link to dataset
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ widget:
|
|
| 14 |
- text: EU offers to pay countries 6,000 euros per person to take in migrants
|
| 15 |
datasets:
|
| 16 |
- mmathys/openai-moderation-api-evaluation
|
| 17 |
-
-
|
| 18 |
co2_eq_emissions:
|
| 19 |
emissions: 0.03967468113268738
|
| 20 |
license: openrail
|
|
|
|
| 14 |
- text: EU offers to pay countries 6,000 euros per person to take in migrants
|
| 15 |
datasets:
|
| 16 |
- mmathys/openai-moderation-api-evaluation
|
| 17 |
+
- KoalaAI/Text-Moderation-v2-small
|
| 18 |
co2_eq_emissions:
|
| 19 |
emissions: 0.03967468113268738
|
| 20 |
license: openrail
|