Update handler.py
Browse files3 unmodified lines456789101112133 unmodified linesimport cv2import base64from ultralytics import YOLOclass EndpointHandler:def __init__(self, path='.'): # pass api key to modelself.model = YOLO("../best.pt")def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:3 unmodified lines4567891011121314153 unmodified linesimport cv2import base64from ultralytics import YOLOimport osclass EndpointHandler:def __init__(self, path='.'): # pass api key to modelcurrent_directory = os.getcwd()print("Current working directory:", current_directory)self.model = YOLO("../best.pt")def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
handler.py+3-1