relixsx commited on
Commit
5ef5bc0
·
verified ·
1 Parent(s): 236ce51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,11 +47,11 @@ def predict(img):
47
 
48
  y_pred = torch.argmax(pred,dim=1)
49
 
50
- class_label = classnames[y_pred]
51
  # 4. Create pred label ane pred prob dictionary
52
 
53
 
54
- pred_labels_and_probs = {classnames[i]: float(pred[0][i]) for i in range(len(classnames))}
55
 
56
 
57
 
 
47
 
48
  y_pred = torch.argmax(pred,dim=1)
49
 
50
+ class_label = class_names[y_pred]
51
  # 4. Create pred label ane pred prob dictionary
52
 
53
 
54
+ pred_labels_and_probs = {class_names[i]: float(pred[0][i]) for i in range(len(class_names))}
55
 
56
 
57