pavi156 commited on
Commit
d215edf
·
1 Parent(s): c5e43e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -7,6 +7,9 @@ from PIL import Image
7
  model_path = "cifar_net.pth"
8
 
9
  model = torch.load(model_path)
 
 
 
10
  model.eval()
11
 
12
  # Prepare the image for prediction
 
7
  model_path = "cifar_net.pth"
8
 
9
  model = torch.load(model_path)
10
+
11
+ model = MyModel()
12
+ model.load_state_dict(state_dict)
13
  model.eval()
14
 
15
  # Prepare the image for prediction