Update README.md
Browse files
README.md
CHANGED
@@ -30,7 +30,9 @@ from setfit import SetFitModel
|
|
30 |
# Download from Hub and run inference
|
31 |
model = SetFitModel.from_pretrained("petarpepi/all-MiniLM-L12-v2-sentiment140-twitter")
|
32 |
# Run inference
|
33 |
-
preds = model(["
|
|
|
|
|
34 |
```
|
35 |
|
36 |
## BibTeX entry and citation info
|
|
|
30 |
# Download from Hub and run inference
|
31 |
model = SetFitModel.from_pretrained("petarpepi/all-MiniLM-L12-v2-sentiment140-twitter")
|
32 |
# Run inference
|
33 |
+
preds = model(["that pizza was the coolest", "pineapple on pizza is the worst 🤮"])
|
34 |
+
# class 1 = positive
|
35 |
+
# class 0 = negative
|
36 |
```
|
37 |
|
38 |
## BibTeX entry and citation info
|