from transformers import pipeline vanilla_clf = pipeline("text-classification", model=model, tokenizer=tokenizer) vanilla_clf("Could you assist me in finding my lost card?") #[{'label': 'lost_or_stolen_card', 'score': 0.9664045572280884}]