Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
duanhong
/
learning
like
0
Model card
Files
Files and versions
xet
Community
main
learning
/
test01.py
duanhong
add first line code
3938f24
over 2 years ago
raw
Copy download link
history
blame
contribute
delete
206 Bytes
from
transformers
import
pipeline
classifier = pipeline(
"sentiment-analysis"
)
classifier(
[
"I've been waiting for a HuggingFace course my whole life."
,
"I hate this so much!"
,
]
)