Update handler.py
Browse files16 unmodified lines1718192021229 unmodified lines32333435363738394016 unmodified linespath = inputs.get("path")key = inputs.get("key")########################### Load Image #################################CLIENT = InferenceHTTPClient(api_url="https://detect.roboflow.com", api_key=key)print("get client")if isurl: # for url set isurl = 19 unmodified lines# can try:# clothing-segmentation-dataset/1# t-shirts-detector/1# mainmodel/2print("start model detection")result = CLIENT.infer(path, model_id="mainmodel/2")detections = sv.Detections.from_inference(result)# print(detections)###########################################################################16 unmodified lines171819202122239 unmodified lines3334353637383940414216 unmodified linespath = inputs.get("path")key = inputs.get("key")########################### Load Image #################################print("load image")CLIENT = InferenceHTTPClient(api_url="https://detect.roboflow.com", api_key=key)print("get client")if isurl: # for url set isurl = 19 unmodified lines# can try:# clothing-segmentation-dataset/1# t-shirts-detector/1# clothing-detection-s4ioc/6# mainmodel/2print("start model detection")result = CLIENT.infer(path, model_id="clothing-detection-s4ioc/6")detections = sv.Detections.from_inference(result)# print(detections)###########################################################################
handler.py+3-1