Haojiacheng commited on
Commit
e396124
·
1 Parent(s): 0873514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ def process_nii_file(input_nii_file, slice, mode):
103
  res_block=True,
104
  dropout_rate=0.0,
105
  ).to(device)
106
- model.load_state_dict(torch.load(os.path.join(root_dir, "best_metric_model67v2.pth")map_location=torch.device('cpu'))) # CPU map
107
 
108
  test_transforms = Compose(
109
  [
 
103
  res_block=True,
104
  dropout_rate=0.0,
105
  ).to(device)
106
+ model.load_state_dict(torch.load(os.path.join(root_dir, "best_metric_model67v2.pth"), map_location=torch.device('cpu'))) # CPU map
107
 
108
  test_transforms = Compose(
109
  [