File size: 226 Bytes
8ac6150
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
# hello_world.py
from transformers import pipeline

# Load a pre-trained sentiment-analysis pipeline
classifier = pipeline("sentiment-analysis")

# Test the classifier
result = classifier("I love Hugging Face!")
print(result)