Update README.md
Browse filesHere, It creates an issue that :
NameError: name 'outputs' is not defined
Here it takes the variable predictions instead of outputs, I change it .
README.md
CHANGED
@@ -41,7 +41,7 @@ model.eval()
|
|
41 |
with torch.no_grad():
|
42 |
prediction = model(**x)
|
43 |
|
44 |
-
label = torch.argmax(
|
45 |
|
46 |
print(f"Label: {label}")
|
47 |
```
|
|
|
41 |
with torch.no_grad():
|
42 |
prediction = model(**x)
|
43 |
|
44 |
+
label = torch.argmax(prediction[0]).item()
|
45 |
|
46 |
print(f"Label: {label}")
|
47 |
```
|