Views
No views yet
1from transformers import pipeline
2
3# Load the model
4classifier = pipeline("text-classification", model="marshal-yash/gujlish-sentiment-analysis")
5
6# Test on Code-Mixed Text
7text = "Aa movie bahu saras che, maja aavi!"
8result = classifier(text)
9
10print(result)
11# Output: [{'label': 'Positive', 'score': 0.99}]