Cyrile commited on
Commit
41a6ba8
1 Parent(s): c159428

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -52,7 +52,7 @@ from transformers import pipeline
52
  guardrail = pipeline("text-classification", "cmarkea/bloomz-560m-guardrail")
53
 
54
  list_text = [...]
55
- model(
56
  list_text,
57
  return_all_scores=True, # Crucial for assessing all modalities of toxicity!
58
  function_to_apply='sigmoid' # To ensure obtaining a score between 0 and 1!
 
52
  guardrail = pipeline("text-classification", "cmarkea/bloomz-560m-guardrail")
53
 
54
  list_text = [...]
55
+ result = guardrail(
56
  list_text,
57
  return_all_scores=True, # Crucial for assessing all modalities of toxicity!
58
  function_to_apply='sigmoid' # To ensure obtaining a score between 0 and 1!