panda1835 commited on
Commit
8a8a3ca
1 Parent(s): 14919b5

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -6,8 +6,8 @@ class EndpointHandler():
6
  # Preload all the elements you are going to need at inference.
7
  # pseudo:
8
  # self.model= load_model(path)
9
- yolov8_model_name = 'yolov8_2023-07-19_yolov8m.pt'
10
- self.model = YOLO(yolov8_model_name)
11
 
12
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
13
  """
 
6
  # Preload all the elements you are going to need at inference.
7
  # pseudo:
8
  # self.model= load_model(path)
9
+ # yolov8_model_name = 'yolov8_2023-07-19_yolov8m.pt'
10
+ self.model = YOLO(path)
11
 
12
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
13
  """