Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
·
0ab31d3
1
Parent(s):
affba60
Update textsentiment.py
Browse files- textsentiment.py +1 -1
textsentiment.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
-
classifier = pipeline("sentiment-analysis"
|
4 |
def getresult(text1):
|
5 |
result1=classifier(text1)
|
6 |
return result1
|
|
|
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
|