rrevoid commited on
Commit
52297f7
·
1 Parent(s): 33fcbd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ cats = ["Computer Science", "Economics", "Electrical Engineering",
28
 
29
  def predict(outputs):
30
  top = 0
31
- temp = 50000
32
  apr_probs = torch.nn.functional.softmax(torch.tensor([39253., 84., 220., 2263., 1214., 909., 66., 10661.]) / temp, dim=0)
33
  probs = nn.functional.softmax(outputs / apr_probs, dim=1).tolist()[0]
34
 
 
28
 
29
  def predict(outputs):
30
  top = 0
31
+ temp = 100000
32
  apr_probs = torch.nn.functional.softmax(torch.tensor([39253., 84., 220., 2263., 1214., 909., 66., 10661.]) / temp, dim=0)
33
  probs = nn.functional.softmax(outputs / apr_probs, dim=1).tolist()[0]
34