Serkan Ozturk commited on
Commit
1d34a73
·
1 Parent(s): 851a185
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -7,7 +7,7 @@ class EndpointHandler():
7
  def __init__(self, path="model_weights.pth"):
8
  # load the optimized model
9
  self.model = SimpleUpscaleModel()
10
- self.model.load_state_dict(torch.load(self.path))
11
 
12
 
13
 
 
7
  def __init__(self, path="model_weights.pth"):
8
  # load the optimized model
9
  self.model = SimpleUpscaleModel()
10
+ self.model.load_state_dict(torch.load(path))
11
 
12
 
13