File size: 214 Bytes
294b12e
c8f8664
c303df4
 
 
 
 
1
2
3
4
5
6
7
from transformers import pipeline 

classifier = pipeline("zero-shot-classification")
classifier(
    "This is a course about the Transformers library",
    candidate_labels=["education", "politics", "business"],
)