Crasher222
commited on
Commit
•
8a1b24c
1
Parent(s):
59f1cac
Update README.md
Browse files
README.md
CHANGED
@@ -8,11 +8,10 @@ datasets:
|
|
8 |
co2_eq_emissions: 60.744727079482495
|
9 |
---
|
10 |
|
11 |
-
# Model
|
12 |
|
13 |
- Problem type: Multi-class Classification
|
14 |
- Model ID: 25805800
|
15 |
-
- CO2 Emissions (in grams): 60.744727079482495
|
16 |
|
17 |
## Validation Metrics
|
18 |
|
@@ -31,22 +30,14 @@ co2_eq_emissions: 60.744727079482495
|
|
31 |
|
32 |
## Usage
|
33 |
|
34 |
-
You can use cURL to access this model:
|
35 |
-
|
36 |
-
```
|
37 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/Crasher222/autonlp-kaggle-test-25805800
|
38 |
-
```
|
39 |
-
|
40 |
-
Or Python API:
|
41 |
-
|
42 |
```
|
43 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
|
45 |
-
model = AutoModelForSequenceClassification.from_pretrained("Crasher222/
|
46 |
|
47 |
-
tokenizer = AutoTokenizer.from_pretrained("Crasher222/
|
48 |
|
49 |
-
inputs = tokenizer("I love
|
50 |
|
51 |
outputs = model(**inputs)
|
52 |
```
|
|
|
8 |
co2_eq_emissions: 60.744727079482495
|
9 |
---
|
10 |
|
11 |
+
# Model Finetuned from BERT-base for
|
12 |
|
13 |
- Problem type: Multi-class Classification
|
14 |
- Model ID: 25805800
|
|
|
15 |
|
16 |
## Validation Metrics
|
17 |
|
|
|
30 |
|
31 |
## Usage
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
```
|
34 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
35 |
|
36 |
+
model = AutoModelForSequenceClassification.from_pretrained("Crasher222/kaggle-comp-test")
|
37 |
|
38 |
+
tokenizer = AutoTokenizer.from_pretrained("Crasher222/kaggle-comp-test")
|
39 |
|
40 |
+
inputs = tokenizer("I am in love with you", return_tensors="pt")
|
41 |
|
42 |
outputs = model(**inputs)
|
43 |
```
|