Update handler.py
Browse files3 unmodified lines45677891011121314153 unmodified linesimport cv2import base64from ultralytics import YOLO
import os
class EndpointHandler: def __init__(self, path='.'): # pass api key to model current_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