Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ encoded_input = tokenizer(text, return_tensors='pt')
|
|
| 24 |
|
| 25 |
output = model(**encoded_input)
|
| 26 |
|
| 27 |
-
scores = softmax(output.logits.
|
| 28 |
|
| 29 |
id2class[np.argmax(scores)]
|
| 30 |
|
|
|
|
| 24 |
|
| 25 |
output = model(**encoded_input)
|
| 26 |
|
| 27 |
+
scores = softmax(output.logits.detach().numpy())
|
| 28 |
|
| 29 |
id2class[np.argmax(scores)]
|
| 30 |
|