akahana commited on
Commit
5c40cee
1 Parent(s): 5cdae12

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: "id"
3
+ widget:
4
+ - text: "dia orang yang baik ya bunds."
5
+ ---
6
+
7
+ ## how to use
8
+
9
+ ```python
10
+ from transformers import pipeline, set_seed
11
+
12
+ path = "akahana/indonesia-sentiment-roberta"
13
+ emotion = pipeline('text-classification',
14
+ model=path,device=0)
15
+ set_seed(42)
16
+
17
+ kalimat = "dia orang yang baik ya bunds."
18
+ preds = emotion(kalimat)
19
+ preds
20
+ ```