Th3BossC commited on
Commit
21482cb
·
1 Parent(s): 6e22a2d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,9 +21,9 @@ def predict(img):
21
 
22
  img = transform(img).unsqueeze(0)
23
 
24
- model.eval()
25
  with torch.inference_mode():
26
- pred_label = class_names[model(img).softmax(dim = 1).argmax(dim = 1)]
27
  print(pred_label)
28
  return pred_label
29
 
 
21
 
22
  img = transform(img).unsqueeze(0)
23
 
24
+ effnetb2.eval()
25
  with torch.inference_mode():
26
+ pred_label = class_names[effnetb2(img).softmax(dim = 1).argmax(dim = 1)]
27
  print(pred_label)
28
  return pred_label
29