Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -24,8 +24,7 @@ class_labels= ['Beagle', 'Boxer', 'Bulldog', 'Dachshund', 'German_Shepherd', 'Go
|
|
24 |
|
25 |
|
26 |
# Model
|
27 |
-
|
28 |
-
else: model=torch.load('best_model.pt')
|
29 |
|
30 |
|
31 |
@torch.no_grad()
|
|
|
24 |
|
25 |
|
26 |
# Model
|
27 |
+
model = torch.jit.load('best_model.pt',map_location=device).to(device)
|
|
|
28 |
|
29 |
|
30 |
@torch.no_grad()
|