Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,15 +3,7 @@ import torch
|
|
| 3 |
from transformers import DistilBertForSequenceClassification, DistilBertTokenizerFast
|
| 4 |
|
| 5 |
|
| 6 |
-
target_to_ind =
|
| 7 |
-
{'cs': 0,
|
| 8 |
-
'econ': 1,
|
| 9 |
-
'eess': 2,
|
| 10 |
-
'math': 3,
|
| 11 |
-
'phys': 4,
|
| 12 |
-
'q-bio': 5,
|
| 13 |
-
'q-fin': 6,
|
| 14 |
-
'stat': 7}
|
| 15 |
|
| 16 |
ind_to_target = {ind: target for target, ind in target_to_ind.items()}
|
| 17 |
|
|
|
|
| 3 |
from transformers import DistilBertForSequenceClassification, DistilBertTokenizerFast
|
| 4 |
|
| 5 |
|
| 6 |
+
target_to_ind = {'cs': 0, 'econ': 1, 'eess': 2, 'math': 3, 'phys': 4, 'q-bio': 5, 'q-fin': 6, 'stat': 7}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
ind_to_target = {ind: target for target, ind in target_to_ind.items()}
|
| 9 |
|