Spaces:
Runtime error
Runtime error
edit
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
5 |
import torch
|
6 |
|
7 |
def bertweet(data):
|
8 |
-
specific_model =
|
9 |
result = specific_model(data)
|
10 |
label = result[0]['label']
|
11 |
score = result[0]['score']
|
|
|
5 |
import torch
|
6 |
|
7 |
def bertweet(data):
|
8 |
+
specific_model = AutoModelForSequenceClassification.from_pretrained(model="finiteautomata/bertweet-base-sentiment-analysis")
|
9 |
result = specific_model(data)
|
10 |
label = result[0]['label']
|
11 |
score = result[0]['score']
|