aayanb09 commited on
Commit
bdc2e49
·
verified ·
1 Parent(s): 0b5287c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -33,7 +33,12 @@ class FoodIngredientClassifier(nn.Module):
33
  # -----------------------------
34
  # Load checkpoint
35
  # -----------------------------
36
- checkpoint = torch.load("best_model.pth", map_location=device)
 
 
 
 
 
37
 
38
  mlb = checkpoint["mlb"]
39
  class_names = mlb.classes_
 
33
  # -----------------------------
34
  # Load checkpoint
35
  # -----------------------------
36
+ checkpoint = torch.load(
37
+ "best_model.pth",
38
+ map_location=device,
39
+ weights_only=False
40
+ )
41
+
42
 
43
  mlb = checkpoint["mlb"]
44
  class_names = mlb.classes_