# 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) | |
# 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) | |