Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import torch
|
|
4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
|
6 |
# Define the paths of the pre-trained models
|
7 |
-
model1_path = "
|
8 |
-
model2_path = "
|
9 |
|
10 |
# Initialize the tokenizer and models for sentiment analysis
|
11 |
tokenizer1 = AutoTokenizer.from_pretrained(model1_path)
|
|
|
4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
|
6 |
# Define the paths of the pre-trained models
|
7 |
+
model1_path = "saisi/finetuned-Sentiment-classfication-ROBERTA-model"
|
8 |
+
model2_path = "saisi/finetuned-Sentiment-classfication-DISTILBERT-model"
|
9 |
|
10 |
# Initialize the tokenizer and models for sentiment analysis
|
11 |
tokenizer1 = AutoTokenizer.from_pretrained(model1_path)
|