Update handler.py
Browse files9 unmodified lines101112131415169 unmodified linesdef __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]]:inputs = data.get("inputs")9 unmodified lines101112131415161718192021229 unmodified linesdef __init__(self, path='.'): # pass api key to modelcurrent_directory = os.getcwd()print("Current working directory:", current_directory)files_and_directories = os.listdir()# Print each file and directoryfor item in files_and_directories:print(item)self.model = YOLO("./best.pt")def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:inputs = data.get("inputs")
handler.py+7-1