Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ model_path = "ltg/norbert3-base_sentence-sentiment"
|
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
11 |
config = AutoConfig.from_pretrained(model_path)
|
12 |
-
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
13 |
|
14 |
def sentiment_analysis(text):
|
15 |
encoded_input = tokenizer(text, return_tensors='pt')
|
|
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
11 |
config = AutoConfig.from_pretrained(model_path)
|
12 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_path, trust_remote_code=True)
|
13 |
|
14 |
def sentiment_analysis(text):
|
15 |
encoded_input = tokenizer(text, return_tensors='pt')
|