Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ from torchvision import datasets, transforms
|
|
9 |
from custom_resnet import CustomResNet
|
10 |
import random
|
11 |
|
|
|
12 |
model = CustomResNet()
|
13 |
model.load_state_dict(torch.load('CustomResNet.pth', map_location=torch.device('cpu')), strict=False)
|
14 |
model.eval()
|
|
|
9 |
from custom_resnet import CustomResNet
|
10 |
import random
|
11 |
|
12 |
+
|
13 |
model = CustomResNet()
|
14 |
model.load_state_dict(torch.load('CustomResNet.pth', map_location=torch.device('cpu')), strict=False)
|
15 |
model.eval()
|