Cherryblade29 commited on
Commit
c89862f
·
verified ·
1 Parent(s): 112a3a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,9 +16,9 @@ effnetb2 , effnetb2_transforms = create_effnetb2_model(num_classes=len(class_nam
16
 
17
  # load and save weights
18
 
19
- #effnetb2.load_state_dict(torch.load(os.path.join("effnetb2.pth"),map_location=torch.device('cpu')))
20
 
21
- effnetb2.load_state_dict(torch.load("effnetb2.pth",map_location=torch.device('cpu')))
22
 
23
 
24
  # Predict function
 
16
 
17
  # load and save weights
18
 
19
+ effnetb2.load_state_dict(torch.load(os.path.join("effnetb2.pth"),map_location=torch.device('cpu')))
20
 
21
+ #effnetb2.load_state_dict(torch.load("effnetb2.pth",map_location=torch.device('cpu')))
22
 
23
 
24
  # Predict function