Subh775 commited on
Commit
c797bd7
·
verified ·
1 Parent(s): 24e88bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def load_model():
15
  torch.nn.ReLU(),
16
  torch.nn.Linear(256, num_classes)
17
  )
18
- model.load_state_dict(torch.load(r"/kaggle/input/rice_epoch8/pytorch/default/1/best_model_epoch_8.pth", map_location=device), strict=False)
19
  model = model.to(device)
20
  model.eval()
21
  return model
 
15
  torch.nn.ReLU(),
16
  torch.nn.Linear(256, num_classes)
17
  )
18
+ model.load_state_dict(torch.load("best_model_epoch_43.pth", map_location=device), strict=False)
19
  model = model.to(device)
20
  model.eval()
21
  return model