Sagar Bisht commited on
Commit
a6995b5
·
verified ·
1 Parent(s): 85107c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def predict(img)->Tuple[Dict, float]:
28
  with torch.inference_mode():
29
  pred_probs=torch.softmax(effnetb2(img), dim=1)
30
 
31
- pred_labels_and_probs={class_names[i]: float(pred_probs[0][i] for i in range(len(class_names)))}4
32
  pred_time=round(timer()-start_time,5)
33
  return pred_labels_and_probs, pred_time
34
 
 
28
  with torch.inference_mode():
29
  pred_probs=torch.softmax(effnetb2(img), dim=1)
30
 
31
+ pred_labels_and_probs={class_names[i]: float(pred_probs[0][i] for i in range(len(class_names)))}
32
  pred_time=round(timer()-start_time,5)
33
  return pred_labels_and_probs, pred_time
34