Muthukamalan commited on
Commit
9396c36
·
verified ·
1 Parent(s): ffad640

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,8 +24,7 @@ class_labels= ['Beagle', 'Boxer', 'Bulldog', 'Dachshund', 'German_Shepherd', 'Go
24
 
25
 
26
  # Model
27
- if device=='cuda': model = torch.jit.load('best_model.pt').to(device)
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()