Update critical error of README.md
#1
by JvL359 - opened
README.md
CHANGED
|
@@ -146,5 +146,5 @@ with torch.no_grad():
|
|
| 146 |
probs = torch.softmax(logits, dim=1)
|
| 147 |
conf, pred = probs.max(dim=1)
|
| 148 |
|
| 149 |
-
print(f"Prediction: {classes[
|
| 150 |
```
|
|
|
|
| 146 |
probs = torch.softmax(logits, dim=1)
|
| 147 |
conf, pred = probs.max(dim=1)
|
| 148 |
|
| 149 |
+
print(f"Prediction: {classes[int(pred.item())]} (Confidence: {conf.item()*100:.1f}%)")
|
| 150 |
```
|