Instructions to use AiresPucrs/toxicity-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AiresPucrs/toxicity-classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AiresPucrs/toxicity-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ The model was trained with a dataset composed of toxic and non-toxic comments ex
|
|
| 24 |
|
| 25 |
⚠️ THE EXAMPLES BELOW CONTAIN TOXIC/OFFENSIVE LANGUAGE ⚠️
|
| 26 |
|
| 27 |
-
```
|
| 28 |
import tensorflow as tf
|
| 29 |
|
| 30 |
toxicity_model = tf.keras.models.load_model('toxicity_model.keras')
|
|
|
|
| 24 |
|
| 25 |
⚠️ THE EXAMPLES BELOW CONTAIN TOXIC/OFFENSIVE LANGUAGE ⚠️
|
| 26 |
|
| 27 |
+
```python
|
| 28 |
import tensorflow as tf
|
| 29 |
|
| 30 |
toxicity_model = tf.keras.models.load_model('toxicity_model.keras')
|