Update README.md
Browse files
README.md
CHANGED
|
@@ -55,11 +55,11 @@ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: applica
|
|
| 55 |
Or Python API:
|
| 56 |
|
| 57 |
```
|
| 58 |
-
from transformers import
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
|
| 64 |
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
|
| 65 |
|
|
|
|
| 55 |
Or Python API:
|
| 56 |
|
| 57 |
```
|
| 58 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 59 |
|
| 60 |
+
tokenizer = AutoTokenizer.from_pretrained("jarvisx17/japanese-sentiment-analysis")
|
| 61 |
|
| 62 |
+
model = AutoModelForSequenceClassification.from_pretrained("jarvisx17/japanese-sentiment-analysis")
|
| 63 |
|
| 64 |
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
|
| 65 |
|