File size: 155 Bytes
5fa1a76
 
 
1
2
3
from transformers import pipeline
classifier = pipeline(task="sentiment-analysis")
preds = classifier("Hugging Face is the best thing since sliced bread!")