pouya-pezeshkpour
commited on
Commit
•
039d082
1
Parent(s):
3101d53
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
|