huolongguo10 commited on
Commit
39be4fe
1 Parent(s): 064236a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -23,8 +23,8 @@ LABEL_1: insecure(可能包含payload)
23
  import transformers
24
  from transformers import BertTokenizer, DataCollatorWithPadding
25
  from transformers import AutoModelForSequenceClassification
26
- tokenizer = BertTokenizer.from_pretrained('huolongguo10/check_sec')
27
- model = AutoModelForSequenceClassification.from_pretrained('huolongguo10/check_sec', num_labels=2)
28
  import torch
29
  def check(text):
30
  inputs = tokenizer(text, return_tensors="pt")
 
23
  import transformers
24
  from transformers import BertTokenizer, DataCollatorWithPadding
25
  from transformers import AutoModelForSequenceClassification
26
+ tokenizer = BertTokenizer.from_pretrained('huolongguo10/check_sec_tiny')
27
+ model = AutoModelForSequenceClassification.from_pretrained('huolongguo10/check_sec_tiny', num_labels=2)
28
  import torch
29
  def check(text):
30
  inputs = tokenizer(text, return_tensors="pt")