iSpr commited on
Commit
4375452
·
1 Parent(s): df5ecf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,8 +32,8 @@ def md_loading():
32
  project_path = './'
33
  output_model_file = os.path.join(project_path, model_checkpoint)
34
 
35
- model.load_state_dict(torch.load(output_model_file))
36
- # model.load_state_dict(torch.load(output_model_file, map_location=torch.device('cpu')))
37
  # ckpt = torch.load(output_model_file, map_location=torch.device('cpu'))
38
  # model.load_state_dict(ckpt['model_state_dict'])
39
 
 
32
  project_path = './'
33
  output_model_file = os.path.join(project_path, model_checkpoint)
34
 
35
+ # model.load_state_dict(torch.load(output_model_file))
36
+ model.load_state_dict(torch.load(output_model_file, map_location=torch.device('cpu')))
37
  # ckpt = torch.load(output_model_file, map_location=torch.device('cpu'))
38
  # model.load_state_dict(ckpt['model_state_dict'])
39