iarbel commited on
Commit
3a43c10
1 Parent(s): 5bb5008

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -6,7 +6,7 @@ DEFAULT_CONFIG = {'conf': 0.25, 'iou': 0.45, 'agnostic_nms': False, 'max_det': 1
6
  BOX_KEYS = ['xmin', 'ymin', 'xmax', 'ymax']
7
 
8
  class EndpointHandler():
9
- def __init__(self):
10
  self.model = YOLO('ultralyticsplus/yolov8s')
11
 
12
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
 
6
  BOX_KEYS = ['xmin', 'ymin', 'xmax', 'ymax']
7
 
8
  class EndpointHandler():
9
+ def __init__(self, path=""):
10
  self.model = YOLO('ultralyticsplus/yolov8s')
11
 
12
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]: