Views
No views yet
1from transformers import pipeline
2
3# Load the model
4model_name = "GalMargo/centralBert"
5classifier = pipeline("text-classification", model=model_name)
6
7# Example text
8example_text = "I am not great at the advice. Can I interest you in a sarcastic comment?"
9result = classifier(example_text)
10print(result)