ryanhuangtw commited on
Commit
4f419ef
·
verified ·
1 Parent(s): 10ef4a7

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -1
handler.py CHANGED
@@ -5,7 +5,8 @@ class EndpointHandler:
5
  """
6
  Initialize the EndpointHandler with the YOLO model from the given directory.
7
  """
8
- self.model = YOLO(f"{model_dir}/model.pt")
 
9
 
10
  def preprocess(self, inputs):
11
  """
 
5
  """
6
  Initialize the EndpointHandler with the YOLO model from the given directory.
7
  """
8
+ # Update the model file name to match your actual file
9
+ self.model = YOLO(f"{model_dir}/tr_roi_finetune_130_large.pt")
10
 
11
  def preprocess(self, inputs):
12
  """