emeraldgoose
commited on
Commit
·
1d63d56
1
Parent(s):
b21f26f
Update README.md
Browse files
README.md
CHANGED
@@ -21,6 +21,6 @@ inputs = tokenizer.encode(text, return_tensors='pt')
|
|
21 |
|
22 |
model.eval()
|
23 |
outputs = model(inputs)['logits']
|
24 |
-
predict = outputs.argmax(-1)
|
25 |
-
print(
|
26 |
```
|
|
|
21 |
|
22 |
model.eval()
|
23 |
outputs = model(inputs)['logits']
|
24 |
+
predict = outputs.argmax(-1)[0]
|
25 |
+
print(tokenizer.decode(predict))
|
26 |
```
|