pavi156 commited on
Commit
f4545ae
·
1 Parent(s): 949eedc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,8 @@ from PIL import Image
6
  # Load the trained model
7
  model_path = "cifar_net.pth"
8
  model = torch.load(model_path, map_location=torch.device('cpu'))
 
 
9
  model.eval()
10
 
11
  # Define class labels for CIFAR-10
 
6
  # Load the trained model
7
  model_path = "cifar_net.pth"
8
  model = torch.load(model_path, map_location=torch.device('cpu'))
9
+ model = YourModelClass() # Replace YourModelClass with the appropriate model class
10
+ model.load_state_dict(state_dict)
11
  model.eval()
12
 
13
  # Define class labels for CIFAR-10