dawn17 commited on
Commit
9986d5d
1 Parent(s): 93dbad8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ class Gradio:
56
 
57
  if os.path.isfile(model_path):
58
  model.load_state_dict(
59
- torch.load(model_path), strict=False, map_location=self.device
60
  )
61
 
62
  return model
 
56
 
57
  if os.path.isfile(model_path):
58
  model.load_state_dict(
59
+ torch.load(model_path, map_location=self.device), strict=False
60
  )
61
 
62
  return model