Alesteba commited on
Commit
bf0255c
·
1 Parent(s): 754a86f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ model_2 = models.torchvision.retinanet.model(
19
  from huggingface_hub import hf_hub_download
20
  hf_hub_download(repo_id="Alesteba/deep_model_02", filename="retinanet_racoon.pth")
21
 
22
- state_dict = torch.load('retinanet_racoon.pth')
23
 
24
  model_2.load_state_dict(state_dict)
25
 
 
19
  from huggingface_hub import hf_hub_download
20
  hf_hub_download(repo_id="Alesteba/deep_model_02", filename="retinanet_racoon.pth")
21
 
22
+ state_dict = torch.load('retinanet_racoon.pth', map_location=torch.device('cpu'))
23
 
24
  model_2.load_state_dict(state_dict)
25