Update README.md
Browse files
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 |
-
|
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!
|