Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import numpy as np
|
|
4 |
from transformers import TrainingArguments, \
|
5 |
Trainer, AutoTokenizer, DataCollatorWithPadding, \
|
6 |
AutoModelForSequenceClassification
|
7 |
-
categories = ['
|
8 |
-
'
|
9 |
labels = [i for i in range(len(categories))]
|
10 |
def print_probs(logits):
|
11 |
probs = torch.nn.functional.softmax(logits, dim=0).numpy()*100
|
|
|
4 |
from transformers import TrainingArguments, \
|
5 |
Trainer, AutoTokenizer, DataCollatorWithPadding, \
|
6 |
AutoModelForSequenceClassification
|
7 |
+
categories = ['Biology', 'Computer science', 'Economics', 'Electrics', 'Finance',
|
8 |
+
'Math', 'Physics', 'Statistics']
|
9 |
labels = [i for i in range(len(categories))]
|
10 |
def print_probs(logits):
|
11 |
probs = torch.nn.functional.softmax(logits, dim=0).numpy()*100
|