Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,7 @@ language: zh
|
|
7 |
|
8 |
from transformers import pipeline
|
9 |
|
10 |
-
classifier = pipeline("text-classification", model="alibaba-pai/pai-bert-base-zh-llm-risk-detection", tokenizer="alibaba-pai/pai-bert-base-zh-llm-risk-detection")
|
11 |
|
12 |
text = "我的月季嫩嫩的就卷了,也看不到虫子,然后就干了,这是什么毛病呢?"
|
13 |
|
|
|
7 |
|
8 |
from transformers import pipeline
|
9 |
|
10 |
+
classifier = pipeline("text-classification", model="alibaba-pai/pai-bert-base-zh-llm-risk-detection", tokenizer="alibaba-pai/pai-bert-base-zh-llm-risk-detection", max_length=128)
|
11 |
|
12 |
text = "我的月季嫩嫩的就卷了,也看不到虫子,然后就干了,这是什么毛病呢?"
|
13 |
|