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