EIStakovskii commited on
Commit
1f99114
1 Parent(s): 0879266

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -22,6 +22,18 @@ This model was trained for toxicity labeling.
22
 
23
  The model was fine-tuned based off [the CamemBERT language model](https://huggingface.co/camembert-base).
24
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ## Metrics (at validation):
26
 
27
  epoch|step|eval_accuracy|eval_f1|eval_loss
 
22
 
23
  The model was fine-tuned based off [the CamemBERT language model](https://huggingface.co/camembert-base).
24
 
25
+
26
+ To use the model:
27
+
28
+ ```python
29
+ from transformers import pipeline
30
+
31
+ classifier = pipeline("text-classification", model = 'EIStakovskii/french_toxicity_classifier_plus_v2')
32
+
33
+ print(classifier("Foutez le camp d'ici!"))
34
+
35
+ ```
36
+
37
  ## Metrics (at validation):
38
 
39
  epoch|step|eval_accuracy|eval_f1|eval_loss