Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ 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('
|
49 |
model.load_state_dict(state_dict) # Load your trained weights
|
50 |
model.eval()
|
51 |
|
|
|
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 |
|