Tolga
commited on
Commit
•
4d40187
1
Parent(s):
f6a0978
Update README.md
Browse files
README.md
CHANGED
@@ -8,7 +8,7 @@ language:
|
|
8 |
widget:
|
9 |
- text: Aldığım hizmetten çok memnun kaldım... Yeniden göklerde görüşmek üzere...
|
10 |
datasets:
|
11 |
-
- tkurtulus/
|
12 |
co2_eq_emissions:
|
13 |
emissions: 1.2718440164245879
|
14 |
metrics:
|
@@ -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/Turkish-AI-rlines
|
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/Turkish-AI-rlines", use_auth_token=True)
|
54 |
|
55 |
-
tokenizer = AutoTokenizer.from_pretrained("tkurtulus/Turkish-AI-rlines", use_auth_token=True)
|
56 |
|
57 |
inputs = tokenizer("I love to fly with Turkish Airlines", return_tensors="pt")
|
58 |
|
|
|
8 |
widget:
|
9 |
- text: Aldığım hizmetten çok memnun kaldım... Yeniden göklerde görüşmek üzere...
|
10 |
datasets:
|
11 |
+
- tkurtulus/thycomments
|
12 |
co2_eq_emissions:
|
13 |
emissions: 1.2718440164245879
|
14 |
metrics:
|
|
|
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/Turkish-AI-rlines-SentimentAnalysis
|
46 |
```
|
47 |
|
48 |
Or Python API:
|
|
|
50 |
```
|
51 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
52 |
|
53 |
+
model = AutoModelForSequenceClassification.from_pretrained("tkurtulus/Turkish-AI-rlines-SentimentAnalysis", use_auth_token=True)
|
54 |
|
55 |
+
tokenizer = AutoTokenizer.from_pretrained("tkurtulus/Turkish-AI-rlines-SentimentAnalysis", use_auth_token=True)
|
56 |
|
57 |
inputs = tokenizer("I love to fly with Turkish Airlines", return_tensors="pt")
|
58 |
|