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