Ruining Li commited on
Commit
effdf42
1 Parent(s): 50e01f3

Minor change.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def model_init():
89
  ),
90
  load=False,
91
  )
92
- model.load_state_dict(torch.load(model_checkpoint)["model"])
93
  model = model.to("cuda")
94
  return model
95
 
 
89
  ),
90
  load=False,
91
  )
92
+ model.load_state_dict(torch.load(model_checkpoint, map_location="cpu")["model"])
93
  model = model.to("cuda")
94
  return model
95