Upload handler.py
Browse files15 unmodified lines1617181920212212 unmodified lines3536373839404115 unmodified linespath = inputs.get("path")key = inputs.get("key")########################### Load Image #################################self.CLIENT = InferenceHTTPClient(api_url="https://detect.roboflow.com",api_key=key)12 unmodified lines# clothing-segmentation-dataset/1# t-shirts-detector/1# mainmodel/2result = self.CLIENT.infer(path, model_id="mainmodel/2")detections = sv.Detections.from_inference(result)# print(detections)###########################################################################15 unmodified lines1617181920212212 unmodified lines3536373839404115 unmodified linespath = inputs.get("path")key = inputs.get("key")########################### Load Image #################################CLIENT = InferenceHTTPClient(api_url="https://detect.roboflow.com",api_key=key)12 unmodified lines# clothing-segmentation-dataset/1# t-shirts-detector/1# mainmodel/2result = CLIENT.infer(path, model_id="mainmodel/2")detections = sv.Detections.from_inference(result)# print(detections)###########################################################################
handler.py+2-2