pouya-pezeshkpour
commited on
Commit
•
f92adcb
1
Parent(s):
af297b6
Update README.md
Browse files
README.md
CHANGED
@@ -30,7 +30,7 @@ config = AutoConfig.from_pretrained(model_name)
|
|
30 |
model = AutoModelForMultipleChoice.from_pretrained(model_name, config = config)
|
31 |
|
32 |
def run_model(input_string):
|
33 |
-
input_ids = tokenizer(input_string, return_tensors="pt")
|
34 |
output = model(input_ids)
|
35 |
print(output)
|
36 |
return output
|
|
|
30 |
model = AutoModelForMultipleChoice.from_pretrained(model_name, config = config)
|
31 |
|
32 |
def run_model(input_string):
|
33 |
+
input_ids = tokenizer.encode(input_string, return_tensors="pt")
|
34 |
output = model(input_ids)
|
35 |
print(output)
|
36 |
return output
|