pavi156 commited on
Commit
425b965
·
1 Parent(s): dab1120

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
6
  # Load the trained model
7
  model_path = "cifar_net.pth"
8
 
9
- model = torch.load(model_path)
10
 
11
  model = torch.nn.Module()
12
  model.load_state_dict(state_dict)
 
6
  # Load the trained model
7
  model_path = "cifar_net.pth"
8
 
9
+ state_dict = torch.load(model_path)
10
 
11
  model = torch.nn.Module()
12
  model.load_state_dict(state_dict)