Spaces:
Runtime error
Runtime error
abdulmatinomotoso
commited on
Commit
•
27f0b7c
1
Parent(s):
dfbd3c2
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ labels = labels = ['Comment (Expert / Leadership)', 'Personal News','Event Parti
|
|
9 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
10 |
|
11 |
|
12 |
-
model_name = '
|
13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
15 |
|
|
|
9 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
10 |
|
11 |
|
12 |
+
model_name = 'almalabs/finetuned-distilbert-article-emotions-categorization'
|
13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
15 |
|