Views
No views yet
1from transformers import pipeline
2classifier = pipeline("zero-shot-classification",model="Azma-AI/deberta-base-multi-label-classifier")
3
4text = "one day I will see the world"
5candidate_labels = ['travel', 'cooking', 'dancing']
6classifier(text, candidate_labels)