megiddo commited on
Commit
07d5288
·
verified ·
1 Parent(s): 35298ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  # Define the model architecture
13
  model = models.resnet152()
14
  model.fc = torch.nn.Linear(model.fc.in_features, 26) # Adjust for the number of classes
15
- model.load_state_dict(torch.load("model.pth", map_location=device))
16
  model = model.to(device)
17
  model.eval()
18
 
 
12
  # Define the model architecture
13
  model = models.resnet152()
14
  model.fc = torch.nn.Linear(model.fc.in_features, 26) # Adjust for the number of classes
15
+ model.load_state_dict(torch.load("trained_model.pth", map_location=device))
16
  model = model.to(device)
17
  model.eval()
18