AyoAgbaje commited on
Commit
5d8ea7e
·
verified ·
1 Parent(s): a7f272f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,7 +109,7 @@ def app_interface():
109
  v2.Normalize(mean=[0.485, 0.456, 0.406],
110
  std=[0.229, 0.224, 0.225])])
111
  class_map = return_classes_()
112
- model_ = torch.load(f"models/{model_1}.pt", map_location=torch.device('cpu'), weights_only = True)
113
  # img_ = Image.open(path_)
114
  img__ = transform(path_).unsqueeze(dim = 0)
115
  pred_ = model_(img__)
 
109
  v2.Normalize(mean=[0.485, 0.456, 0.406],
110
  std=[0.229, 0.224, 0.225])])
111
  class_map = return_classes_()
112
+ model_ = torch.load(f"models/{model_1}.pt", map_location=torch.device('cpu'))
113
  # img_ = Image.open(path_)
114
  img__ = transform(path_).unsqueeze(dim = 0)
115
  pred_ = model_(img__)