Spaces:
Sleeping
Sleeping
balakrish181
commited on
Commit
•
34b3108
1
Parent(s):
4027be6
corrected error
Browse files
model.py
CHANGED
@@ -47,7 +47,7 @@ def load_model():
|
|
47 |
transforms.Grayscale(num_output_channels=1)
|
48 |
])
|
49 |
|
50 |
-
model.load_state_dict(torch.load('
|
51 |
|
52 |
return model,transforming,model.classes
|
53 |
|
|
|
47 |
transforms.Grayscale(num_output_channels=1)
|
48 |
])
|
49 |
|
50 |
+
model.load_state_dict(torch.load('best_model.pth',map_location='cpu'))
|
51 |
|
52 |
return model,transforming,model.classes
|
53 |
|