Spaces:
Sleeping
Sleeping
Cherryblade29
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ effnetb2 , effnetb2_transforms = create_effnetb2_model(num_classes=len(class_nam
|
|
16 |
|
17 |
# load and save weights
|
18 |
|
19 |
-
|
20 |
|
21 |
-
effnetb2.load_state_dict(torch.load("effnetb2.pth",map_location=torch.device('cpu')))
|
22 |
|
23 |
|
24 |
# Predict function
|
|
|
16 |
|
17 |
# load and save weights
|
18 |
|
19 |
+
effnetb2.load_state_dict(torch.load(os.path.join("effnetb2.pth"),map_location=torch.device('cpu')))
|
20 |
|
21 |
+
#effnetb2.load_state_dict(torch.load("effnetb2.pth",map_location=torch.device('cpu')))
|
22 |
|
23 |
|
24 |
# Predict function
|