iSpr commited on
Commit
d689387
·
1 Parent(s): b263e68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,8 +23,9 @@ def md_loading():
23
  model_checkpoint = 'base1_43_11.bin'
24
  project_path = './'
25
  output_model_file = os.path.join(project_path, model_checkpoint)
 
26
 
27
- model.load_state_dict(torch.load(output_model_file['model_state_dict'], map_location=torch.device('cpu')))
28
 
29
  ################################## label tbl 수정
30
  label_tbl = np.load('./label_table.npy')
 
23
  model_checkpoint = 'base1_43_11.bin'
24
  project_path = './'
25
  output_model_file = os.path.join(project_path, model_checkpoint)
26
+ ckpt = torch.load(output_model_file)
27
 
28
+ model.load_state_dict(ckpt['model_state_dict'], map_location=torch.device('cpu')))
29
 
30
  ################################## label tbl 수정
31
  label_tbl = np.load('./label_table.npy')