sefaozalpadl
commited on
Commit
•
fbb7fbb
1
Parent(s):
94938ca
Update README.md
Browse files
README.md
CHANGED
@@ -34,11 +34,11 @@ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: applica
|
|
34 |
Or Python API:
|
35 |
|
36 |
```
|
37 |
-
from transformers import
|
|
|
|
|
38 |
|
39 |
-
model = AutoModelForSequenceClassification.from_pretrained("sefaozalpadl/election_relevancy_best"
|
40 |
-
|
41 |
-
tokenizer = AutoTokenizer.from_pretrained("sefaozalpadl/election_relevancy_best", use_auth_token=True)
|
42 |
|
43 |
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
|
44 |
|
|
|
34 |
Or Python API:
|
35 |
|
36 |
```
|
37 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
38 |
+
|
39 |
+
tokenizer = AutoTokenizer.from_pretrained("sefaozalpadl/election_relevancy_best")
|
40 |
|
41 |
+
model = AutoModelForSequenceClassification.from_pretrained("sefaozalpadl/election_relevancy_best")
|
|
|
|
|
42 |
|
43 |
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
|
44 |
|