Meloo commited on
Commit
54d5611
1 Parent(s): 1047170

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def set_safmn(upscale):
40
  else:
41
  raise NotImplementedError('Only support x2/x4 upscaling!')
42
 
43
- model.load_state_dict(torch.load(model_path)['params'], strict=True)
44
  model.eval()
45
  return model.to(device)
46
 
 
40
  else:
41
  raise NotImplementedError('Only support x2/x4 upscaling!')
42
 
43
+ model.load_state_dict(torch.load(model_path, weights_only=True)['params'], strict=True)
44
  model.eval()
45
  return model.to(device)
46