Tolga
commited on
Commit
•
f6a0978
1
Parent(s):
2f33b0f
Update README.md
Browse files
README.md
CHANGED
@@ -3,13 +3,17 @@ tags:
|
|
3 |
- autotrain
|
4 |
- text-classification
|
5 |
language:
|
6 |
-
-
|
|
|
7 |
widget:
|
8 |
-
- text:
|
9 |
datasets:
|
10 |
- tkurtulus/autotrain-data-tktktk
|
11 |
co2_eq_emissions:
|
12 |
emissions: 1.2718440164245879
|
|
|
|
|
|
|
13 |
---
|
14 |
|
15 |
# Model Trained Using AutoTrain
|
@@ -38,7 +42,7 @@ co2_eq_emissions:
|
|
38 |
You can use cURL to access this model:
|
39 |
|
40 |
```
|
41 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love
|
42 |
```
|
43 |
|
44 |
Or Python API:
|
@@ -46,11 +50,11 @@ Or Python API:
|
|
46 |
```
|
47 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
48 |
|
49 |
-
model = AutoModelForSequenceClassification.from_pretrained("tkurtulus/
|
50 |
|
51 |
-
tokenizer = AutoTokenizer.from_pretrained("tkurtulus/
|
52 |
|
53 |
-
inputs = tokenizer("I love
|
54 |
|
55 |
outputs = model(**inputs)
|
56 |
```
|
|
|
3 |
- autotrain
|
4 |
- text-classification
|
5 |
language:
|
6 |
+
- tr
|
7 |
+
- en
|
8 |
widget:
|
9 |
+
- text: Aldığım hizmetten çok memnun kaldım... Yeniden göklerde görüşmek üzere...
|
10 |
datasets:
|
11 |
- tkurtulus/autotrain-data-tktktk
|
12 |
co2_eq_emissions:
|
13 |
emissions: 1.2718440164245879
|
14 |
+
metrics:
|
15 |
+
- accuracy
|
16 |
+
pipeline_tag: text-classification
|
17 |
---
|
18 |
|
19 |
# Model Trained Using AutoTrain
|
|
|
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 |
```
|
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 |
|
59 |
outputs = model(**inputs)
|
60 |
```
|