mod-ws1-FriAug18 / pipe1.py
waynesbc's picture
Upload pipe1.py
3a6379b
raw
history blame contribute delete
167 Bytes
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
res = classifier("I've been waiting for a HuggingFace course my whole life.")
print(res)