gowtham58 commited on
Commit
738757c
1 Parent(s): 93c84eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ img_transform = transforms.Compose([
12
  transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
13
  ])
14
  #Loading the model
15
- model = torch.load(Path("model\MobileNet_v3.pt"), map_location=torch.device('cpu'))
 
16
  model.eval()
17
 
18
  #Mushroom Classes
 
12
  transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
13
  ])
14
  #Loading the model
15
+ model_pth = Path("model\MobileNet_v3.pt")
16
+ model = torch.load(model_pth, map_location=torch.device('cpu'))
17
  model.eval()
18
 
19
  #Mushroom Classes