Spaces:
Build error
Build error
fix app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ effnetb2, effnetb2_transforms = create_effnetb2_model(
|
|
| 18 |
#load saved weights
|
| 19 |
effnetb2.load_state_dict(
|
| 20 |
torch.load(
|
| 21 |
-
f="demos/foodvision_mini/Pretrained_effnet_v2_20_percent.pth,
|
| 22 |
map_location=torch.device("cpu"), # load to CPU
|
| 23 |
)
|
| 24 |
)
|
|
|
|
| 18 |
#load saved weights
|
| 19 |
effnetb2.load_state_dict(
|
| 20 |
torch.load(
|
| 21 |
+
f="Pretrained_effnet_v2_20_percent.pth",#,"demos/foodvision_mini/Pretrained_effnet_v2_20_percent.pth",
|
| 22 |
map_location=torch.device("cpu"), # load to CPU
|
| 23 |
)
|
| 24 |
)
|