test2 / app.py
sbthesis's picture
Update app.py
fea35ba
raw
history blame
254 Bytes
from transformers import sentencepiece
from transfomers import pipeline
classifier = pipeline("zero-shot-classification")
classifier(
"This is a course about the Transformers library",
candidate_labels=["education", "politics", "business"],
)