Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
·
c39cc72
1
Parent(s):
d8a07a3
Update acogsphere.py
Browse files- acogsphere.py +3 -3
acogsphere.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
classifier = pipeline("sentiment-analysis") #, model="stevhliu/my_awesome_model")
|
4 |
-
def
|
5 |
-
|
6 |
-
return
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
classifier = pipeline("sentiment-analysis") #, model="stevhliu/my_awesome_model")
|
4 |
+
def acf(text1):
|
5 |
+
acfresult=classifier(text1)
|
6 |
+
return acfresult
|