pouya-pezeshkpour
commited on
Commit
•
ef4004e
1
Parent(s):
d035e66
Update README.md
Browse files
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
|
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
|