change: model name
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from model import SentimentAnalysisModel
|
|
5 |
|
6 |
# Load the pre-trained sentiment analysis model
|
7 |
model = SentimentAnalysisModel(bert_model_name="SamLowe/roberta-base-go_emotions", num_labels=7)
|
8 |
-
model.load_state_dict(torch.load("
|
9 |
model.eval()
|
10 |
|
11 |
# Mapping from predicted class to emoji
|
|
|
5 |
|
6 |
# Load the pre-trained sentiment analysis model
|
7 |
model = SentimentAnalysisModel(bert_model_name="SamLowe/roberta-base-go_emotions", num_labels=7)
|
8 |
+
model.load_state_dict(torch.load("best_model_75.pth", map_location=torch.device('cpu')))
|
9 |
model.eval()
|
10 |
|
11 |
# Mapping from predicted class to emoji
|