Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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']
|
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')
|