Spaces:
Sleeping
Sleeping
abdulmatinomotoso
commited on
Commit
•
fee5906
1
Parent(s):
c836955
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ target_list = ["Playful", "Infuriating", "Sentimental", "Cynical", "Depressing",
|
|
9 |
"Sarcastic", "Disrespectful", "Disparaging"]
|
10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
11 |
|
12 |
-
|
13 |
model_name = 'valurank/finetuned-distilbert-multi-label-emotion'
|
14 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
15 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
9 |
"Sarcastic", "Disrespectful", "Disparaging"]
|
10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
11 |
|
|
|
12 |
model_name = 'valurank/finetuned-distilbert-multi-label-emotion'
|
13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|