Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
CognitiveScience
/
CogSphere
like
0
Runtime error
App
Files
Files
Community
2
Fetching metadata from the HF Docker repository...
8cf4da3
CogSphere
/
textsentiment.py
CognitiveScience
Update textsentiment.py
0ab31d3
about 1 year ago
raw
Copy download link
history
blame
Safe
187 Bytes
from
transformers
import
pipeline
classifier = pipeline(
"sentiment-analysis"
)
#, model="stevhliu/my_awesome_model")
def
getresult
(
text1
):
result1=classifier(text1)
return
result1