Spaces:
Runtime error
Runtime error
Commit
·
b7718a5
1
Parent(s):
4fe8a03
Create acogsphere.py
Browse files- acogsphere.py +6 -0
acogsphere.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|