Update handler.py
Browse files17 unmodified lines18192021222324252627284 unmodified lines3334353637383917 unmodified lines# current_directory = os.getcwd()# print("Current working directory:", current_directory)url = "https://drive.google.com/file/d/1jB8sDYYOTfuF7B1PMcDjkm5R7huv97Wm/view?usp=sharing"gdown.download(url, 'best.pt', quiet=False)self.model = YOLO("best.pt")def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:inputs = data.get("inputs")print("in call")4 unmodified linesprint("is path")print(path)# path = "http://10.10.2.100/cam-lo.jpg"model = self.model########################### Load Image #################################if(isurl): # for url set isurl = 1print("checkpoint 2-1")17 unmodified lines1819202122232425262728294 unmodified lines3435363738394017 unmodified lines# current_directory = os.getcwd()# print("Current working directory:", current_directory)def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:url = "https://drive.google.com/file/d/1jB8sDYYOTfuF7B1PMcDjkm5R7huv97Wm/view?usp=sharing"gdown.download(url, 'best.pt', quiet=False)model = YOLO("best.pt")inputs = data.get("inputs")print("in call")4 unmodified linesprint("is path")print(path)# path = "http://10.10.2.100/cam-lo.jpg"# model = self.model########################### Load Image #################################if(isurl): # for url set isurl = 1print("checkpoint 2-1")
handler.py+4-3