File size: 213 Bytes
fea35ba
c8f8664
c303df4
 
 
 
 
1
2
3
4
5
6
7
from transfomers import pipeline 

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