buzzcraft commited on
Commit
f826a39
1 Parent(s): f74faa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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')