panda1835 commited on
Commit
5fb42c3
·
1 Parent(s): d68ba9c

Update handler.py

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