Fix: Correct prediction printing logic in example code

#7
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -32,5 +32,5 @@ predictions = torch.round((torch.sign(discriminator_outputs[0]) + 1) / 2)
32
 
33
  [print("%7s" % token, end="") for token in fake_tokens]
34
 
35
- [print("%7s" % int(prediction), end="") for prediction in predictions.tolist()]
36
  ```
 
32
 
33
  [print("%7s" % token, end="") for token in fake_tokens]
34
 
35
+ [print("%7s" % int(pred), end="") for pred in predictions[0]]
36
  ```