jerilseb commited on
Commit
2f156d5
1 Parent(s): 8b14234

update stuff

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -49,6 +49,7 @@ def predict(image):
49
  print(out.shape)
50
  probabilities = F.softmax(out[0], dim=0)
51
  values, indices = torch.topk(probabilities, 5)
 
52
 
53
  return {LABELS[i]: v.item() for i, v in zip(indices, values)}
54
 
 
49
  print(out.shape)
50
  probabilities = F.softmax(out[0], dim=0)
51
  values, indices = torch.topk(probabilities, 5)
52
+ print(values, indices)
53
 
54
  return {LABELS[i]: v.item() for i, v in zip(indices, values)}
55