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