Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ widget:
|
|
9 |
```python
|
10 |
from transformers import pipeline, set_seed
|
11 |
|
12 |
-
path = "akahana/indonesia-emotion-
|
13 |
emotion = pipeline('text-classification',
|
14 |
model=path,device=0)
|
15 |
set_seed(42)
|
@@ -18,6 +18,6 @@ kalimat = "dia orang yang baik ya bunds."
|
|
18 |
preds = emotion(kalimat)
|
19 |
preds
|
20 |
|
21 |
-
[{'label': '
|
22 |
|
23 |
```
|
|
|
9 |
```python
|
10 |
from transformers import pipeline, set_seed
|
11 |
|
12 |
+
path = "akahana/indonesia-emotion-roberta"
|
13 |
emotion = pipeline('text-classification',
|
14 |
model=path,device=0)
|
15 |
set_seed(42)
|
|
|
18 |
preds = emotion(kalimat)
|
19 |
preds
|
20 |
|
21 |
+
[{'label': 'BAHAGIA', 'score': 0.8790940046310425}]
|
22 |
|
23 |
```
|