skumar1998 commited on
Commit
83d24c3
·
1 Parent(s): c9cf887

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -3
handler.py CHANGED
@@ -15,9 +15,8 @@ class EndpointHandler():
15
  current_directory = os.getcwd()
16
  logging.info(f'current dir: {current_directory}')
17
  logging.info(f'all files: {os.listdir(path)}')
18
- # model_path = "yolov8m_detect_usdl.pt"
19
- # self.model = YOLO(model_path)
20
- # print('Yolo model loaded successfully')
21
 
22
 
23
  def __call__(self, data: Dict) -> Dict:
 
15
  current_directory = os.getcwd()
16
  logging.info(f'current dir: {current_directory}')
17
  logging.info(f'all files: {os.listdir(path)}')
18
+ self.model = YOLO(os.path.join(path, 'yolov8m_detect_usdl.pt'))
19
+ print('Yolo model loaded successfully')
 
20
 
21
 
22
  def __call__(self, data: Dict) -> Dict: