Ahsen Khaliq commited on
Commit
fc0609e
1 Parent(s): a41e9e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,10 +34,10 @@ def inference(m1,m2):
34
  scores = torch.softmax(output.logits, dim=-1)
35
  listscore = scores.tolist()
36
  print(listscore)
37
- b['not related'] = listscore[0]
38
- b['coref'] = listscore[1]
39
- b['parent'] = listscore[2]
40
- b['child'] = listscore[3]
41
  return b
42
 
43
  title = "Longformer-scico"
 
34
  scores = torch.softmax(output.logits, dim=-1)
35
  listscore = scores.tolist()
36
  print(listscore)
37
+ b['not related'] = listscore[0][0]
38
+ b['coref'] = listscore[0][1]
39
+ b['parent'] = listscore[0][2]
40
+ b['child'] = listscore[0][3]
41
  return b
42
 
43
  title = "Longformer-scico"