def get_management_stub(): channel = grpc.insecure_channel( 'localhost:8081', options=(('grpc.ssl_target_name_override', 'torchserve-grpc.kserve-test.example.com'), )) stub = management_pb2_grpc.ManagementAPIsServiceStub(channel) return stub
def get_management_stub(): channel = grpc.insecure_channel('localhost:7071') stub = management_pb2_grpc.ManagementAPIsServiceStub(channel) return stub