olive33 commited on
Commit
a71f059
1 Parent(s): 28c784d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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