Views
No views yet
DistilBERTTransformers (Hugging Face)English1from transformers import pipeline
2
3model = "sonisatish119/PhysioMindAI-intent-classification-bert" # Update with your repo name
4classifier = pipeline("text-classification", model=model)
5
6query = "Can I book an appointment for next Monday?"
7prediction = classifier(query)
8print(prediction) # Output: [{'label': 'book_appointment', 'score': 0.98}]