Spaces:
Runtime error
Runtime error
Commit
·
1fc3836
1
Parent(s):
4b616ca
Create new file
Browse files- text.ipynb +7 -0
text.ipynb
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline
|
2 |
+
|
3 |
+
emoroberta_emotion_classifier = pipeline(
|
4 |
+
"text-classification", model="arpanghoshal/EmoRoBERTa", return_all_scores=True
|
5 |
+
)
|
6 |
+
|
7 |
+
emoroberta_emotion_classifier("Did this print?")
|