Update handler.py
Browse files16 unmodified lines171819202122239 unmodified lines333435363738373940414216 unmodified lines path = 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/2 print("start model detection") result = CLIENT.infer(path, model_id="mainmodel/2") result = CLIENT.infer(path, model_id="clothing-detection-s4ioc/6") detections = sv.Detections.from_inference(result) # print(detections) ###########################################################################handler.py+3-1