emeraldgoose commited on
Commit
1d63d56
·
1 Parent(s): b21f26f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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([tokenizer.decode(iter) for iter in predict])
26
  ```
 
21
 
22
  model.eval()
23
  outputs = model(inputs)['logits']
24
+ predict = outputs.argmax(-1)[0]
25
+ print(tokenizer.decode(predict))
26
  ```