juaben commited on
Commit
4c73d46
·
verified ·
1 Parent(s): d5949ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def process_img(image, filename):
26
 
27
  # filename = image.name.split("/")[-1]
28
  # if filename in image_to_weights:
29
- model_path = image_to_weights[image_to_weights[1]]
30
  checkpoints = torch.load(model_path, map_location=device)
31
  model.load_state_dict(checkpoints['params'])
32
  model.to(device)
 
26
 
27
  # filename = image.name.split("/")[-1]
28
  # if filename in image_to_weights:
29
+ model_path = image_to_weights[1]
30
  checkpoints = torch.load(model_path, map_location=device)
31
  model.load_state_dict(checkpoints['params'])
32
  model.to(device)