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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ 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'])
 
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'])