Sachinkelenjaguri
commited on
Commit
•
a2673e9
1
Parent(s):
b5c068c
update
Browse files
README.md
CHANGED
@@ -45,7 +45,7 @@ co2_eq_emissions:
|
|
45 |
You can use cURL to access this model:
|
46 |
|
47 |
```
|
48 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/Sachinkelenjaguri/
|
49 |
```
|
50 |
|
51 |
Or Python API:
|
@@ -53,9 +53,9 @@ Or Python API:
|
|
53 |
```
|
54 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
55 |
|
56 |
-
model = AutoModelForSequenceClassification.from_pretrained("Sachinkelenjaguri/
|
57 |
|
58 |
-
tokenizer = AutoTokenizer.from_pretrained("Sachinkelenjaguri/
|
59 |
|
60 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
61 |
|
|
|
45 |
You can use cURL to access this model:
|
46 |
|
47 |
```
|
48 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/Sachinkelenjaguri/Sachinkelenjaguri/climate_sentiment_classifier
|
49 |
```
|
50 |
|
51 |
Or Python API:
|
|
|
53 |
```
|
54 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
55 |
|
56 |
+
model = AutoModelForSequenceClassification.from_pretrained("Sachinkelenjaguri/climate_sentiment_classifier", use_auth_token=True)
|
57 |
|
58 |
+
tokenizer = AutoTokenizer.from_pretrained("Sachinkelenjaguri/climate_sentiment_classifier", use_auth_token=True)
|
59 |
|
60 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
61 |
|