def load_model()

in tutorials/app/edge_agent_utils.py [0:0]


def load_model(cli, model_name, model_path):
    """ Load a new model into the Edge Agent if not loaded yet"""
    try:
        req = agent.LoadModelRequest()
        req.url = model_path
        req.name = model_name
        return cli.LoadModel(req)        
    except Exception as e:
        print(e)        
        return None