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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def md_loading():
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, map_location=torch.device('cpu')))
28
 
29
  ################################## label tbl 수정
30
  label_tbl = np.load('./label_table.npy')
 
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')