ilyshi commited on
Commit
7ed1e45
1 Parent(s): 2421d35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ import numpy as np
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
 
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