sms
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import matplotlib.pyplot as plt
|
|
| 6 |
|
| 7 |
# Load model and tokenizer
|
| 8 |
model_name = "tabularisai/multilingual-sentiment-analysis"
|
| 9 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name
|
| 10 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 11 |
|
| 12 |
def predict_sentiment(texts):
|
|
|
|
| 6 |
|
| 7 |
# Load model and tokenizer
|
| 8 |
model_name = "tabularisai/multilingual-sentiment-analysis"
|
| 9 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 10 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 11 |
|
| 12 |
def predict_sentiment(texts):
|