dhruv2842 commited on
Commit
456a39c
Β·
verified Β·
1 Parent(s): 2026d60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,8 +45,8 @@ from densenet_withglam import get_model_with_attention
45
 
46
  # βœ… Instantiate the model
47
  model = get_model_with_attention('densenet169', num_classes=3) # Will have GLAM
48
- state_dict = torch.load('densenet169_seed40_best.pt', map_location='cpu')
49
- model.load_state_dict(state_dict) # Load your trained weights
50
  model.eval()
51
 
52
  # βœ… Class Names
 
45
 
46
  # βœ… Instantiate the model
47
  model = get_model_with_attention('densenet169', num_classes=3) # Will have GLAM
48
+ model.load_state_dict(torch.load('densenet169_seed40_best.pt', map_location='cpu'))
49
+ # Load your trained weights
50
  model.eval()
51
 
52
  # βœ… Class Names