mirari commited on
Commit
620ffb5
·
1 Parent(s): 83bcea0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  from icevision.all import *
2
  import gradio as gr
3
 
4
- state_dict = torch.load('fasterRCNNKangaroo.pth')
5
  model.load_state_dict(state_dict)
6
 
7
  labels = learn.dls.vocab
 
1
  from icevision.all import *
2
  import gradio as gr
3
 
4
+ state_dict = torch.load('fasterRCNNKangaroo.pth', map_location=torch.device('cpu'))
5
  model.load_state_dict(state_dict)
6
 
7
  labels = learn.dls.vocab