Update README.md
Browse files
README.md
CHANGED
@@ -61,7 +61,7 @@ text = "Tall people are so clumsy."
|
|
61 |
predictions = classifier(text)
|
62 |
|
63 |
# Print predictions
|
64 |
-
for pred in predictions:
|
65 |
print(f"{pred['label']}: {pred['score']:.3f}")
|
66 |
```
|
67 |
|
|
|
61 |
predictions = classifier(text)
|
62 |
|
63 |
# Print predictions
|
64 |
+
for pred in predictions[0]:
|
65 |
print(f"{pred['label']}: {pred['score']:.3f}")
|
66 |
```
|
67 |
|