pouya-pezeshkpour commited on
Commit
37a20c9
1 Parent(s): f80c40e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -29,7 +29,7 @@ model = BertModel.from_pretrained(model_name)
29
 
30
 
31
  def run_model(input_string):
32
- input_ids = tokenizer.encode(input_string, return_tensors="pt")
33
  output = model(input_ids)
34
  print(output)
35
  return output
 
29
 
30
 
31
  def run_model(input_string):
32
+ input_ids = tokenizer(input_string, return_tensors="pt")
33
  output = model(input_ids)
34
  print(output)
35
  return output