Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,7 @@ effnetb2, effnetb2_transforms = create_effnetb2_model(
|
|
18 |
|
19 |
# Load saved weights
|
20 |
effnetb2.load_state_dict(
|
21 |
-
torch.load(f="pretrained_effnetb2_food101_20_percent.pth")
|
22 |
-
map_location=torch.device("cpu")
|
23 |
)
|
24 |
|
25 |
# Prediction
|
|
|
18 |
|
19 |
# Load saved weights
|
20 |
effnetb2.load_state_dict(
|
21 |
+
torch.load(f="pretrained_effnetb2_food101_20_percent.pth", map_location=torch.device("cpu"))
|
|
|
22 |
)
|
23 |
|
24 |
# Prediction
|