Sachinkelenjaguri
commited on
Commit
·
65b92a7
1
Parent(s):
a384587
update to name
Browse files
README.md
CHANGED
@@ -43,7 +43,7 @@ co2_eq_emissions:
|
|
43 |
You can use cURL to access this model:
|
44 |
|
45 |
```
|
46 |
-
$ 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/
|
47 |
```
|
48 |
|
49 |
Or Python API:
|
@@ -51,9 +51,9 @@ Or Python API:
|
|
51 |
```
|
52 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
53 |
|
54 |
-
model = AutoModelForSequenceClassification.from_pretrained("Sachinkelenjaguri/
|
55 |
|
56 |
-
tokenizer = AutoTokenizer.from_pretrained("Sachinkelenjaguri/
|
57 |
|
58 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
59 |
|
|
|
43 |
You can use cURL to access this model:
|
44 |
|
45 |
```
|
46 |
+
$ 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/climate-tcfd-recommendation
|
47 |
```
|
48 |
|
49 |
Or Python API:
|
|
|
51 |
```
|
52 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
53 |
|
54 |
+
model = AutoModelForSequenceClassification.from_pretrained("Sachinkelenjaguri/climate-tcfd-recommendation", use_auth_token=True)
|
55 |
|
56 |
+
tokenizer = AutoTokenizer.from_pretrained("Sachinkelenjaguri/climate-tcfd-recommendation", use_auth_token=True)
|
57 |
|
58 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
59 |
|