Commit ·
37a20c9
1
Parent(s): f80c40e
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
|