iSpr commited on
Commit
558c26c
·
1 Parent(s): 694f95f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,9 +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
- 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')
 
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, map_location=torch.device('cpu'))
27
 
28
+ model.load_state_dict(ckpt['model_state_dict'])
29
 
30
  ################################## label tbl 수정
31
  label_tbl = np.load('./label_table.npy')