Spaces:
Sleeping
Sleeping
Commit
·
3141888
1
Parent(s):
887455b
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,12 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
5 |
import torch
|
6 |
|
7 |
|
8 |
-
target_list = ["
|
9 |
-
|
10 |
-
"Encouraging", "Voyeuristic", "Funny", "Sarcastic", "Dismissive", "Disparaging"]
|
11 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
12 |
|
13 |
|
14 |
-
model_name = 'abdulmatinomotoso/finetuned-distilbert-multi-label-
|
15 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
16 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
17 |
|
|
|
5 |
import torch
|
6 |
|
7 |
|
8 |
+
target_list = ["Playful", "Infuriating", "Sentimental", "Cynical", "Depressing", "Awe-inspiring", "Patriotic", "Begrudging", "Educational", "Hopeful",
|
9 |
+
"Sarcastic", "Disrespectful", "Disparaging"]
|
|
|
10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
11 |
|
12 |
|
13 |
+
model_name = 'abdulmatinomotoso/finetuned-distilbert-multi-label-emotion_headline'
|
14 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
15 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
16 |
|