Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
·
64e1ab8
1
Parent(s):
7a75335
Rename textsentiment to textsentiment.py
Browse files
textsentiment → textsentiment.py
RENAMED
@@ -1,4 +1,6 @@
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
classifier = pipeline("sentiment-analysis", model="stevhliu/my_awesome_model")
|
4 |
-
|
|
|
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
classifier = pipeline("sentiment-analysis", model="stevhliu/my_awesome_model")
|
4 |
+
def getresult(text1):
|
5 |
+
result1=classifier(text1)
|
6 |
+
return result1
|