porestar commited on
Commit
afed0d5
·
1 Parent(s): 6b33e39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ model = UNet2DModel(
25
  ),
26
  )
27
 
28
- model.load_state_dict(torch.load(path))
29
 
30
 
31
  def classify_image(inp):
 
25
  ),
26
  )
27
 
28
+ model.load_state_dict(torch.load(path, map_location=torch.device('cpu')))
29
 
30
 
31
  def classify_image(inp):