Tolga
commited on
Commit
·
a44d63b
1
Parent(s):
4d40187
Update README.md
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ pipeline_tag: text-classification
|
|
| 42 |
You can use cURL to access this model:
|
| 43 |
|
| 44 |
```
|
| 45 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love to fly with Turkish Airlines"}' https://api-inference.huggingface.co/models/tkurtulus/
|
| 46 |
```
|
| 47 |
|
| 48 |
Or Python API:
|
|
@@ -50,9 +50,9 @@ Or Python API:
|
|
| 50 |
```
|
| 51 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 52 |
|
| 53 |
-
model = AutoModelForSequenceClassification.from_pretrained("tkurtulus/
|
| 54 |
|
| 55 |
-
tokenizer = AutoTokenizer.from_pretrained("tkurtulus/
|
| 56 |
|
| 57 |
inputs = tokenizer("I love to fly with Turkish Airlines", return_tensors="pt")
|
| 58 |
|
|
|
|
| 42 |
You can use cURL to access this model:
|
| 43 |
|
| 44 |
```
|
| 45 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love to fly with Turkish Airlines"}' https://api-inference.huggingface.co/models/tkurtulus/TurkishAirlines-SentimentAnalysisModel
|
| 46 |
```
|
| 47 |
|
| 48 |
Or Python API:
|
|
|
|
| 50 |
```
|
| 51 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 52 |
|
| 53 |
+
model = AutoModelForSequenceClassification.from_pretrained("tkurtulus/TurkishAirlines-SentimentAnalysisModel")
|
| 54 |
|
| 55 |
+
tokenizer = AutoTokenizer.from_pretrained("tkurtulus/TurkishAirlines-SentimentAnalysisModel")
|
| 56 |
|
| 57 |
inputs = tokenizer("I love to fly with Turkish Airlines", return_tensors="pt")
|
| 58 |
|