Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def md_loading():
|
|
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')
|
|
|
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')
|