(self, load_conf)
with tempfile.TemporaryDirectory() as job_dir:
            submit_path = os.path.join(job_dir, "job_runtime_conf.json")
            with open(submit_path, "w") as fout:
                fout.write(json.dumps(load_conf))
        result = self.client.model.load(submit_path)
with tempfile.TemporaryDirectory() as job_dir:
            submit_path = os.path.join(job_dir, "job_runtime_conf.json")
            with open(submit_path, "w") as fout:
                fout.write(json.dumps(load_conf))
        result = self.client.model.load(submit_path)
with tempfile . TemporaryDirectory () as job_dir : submit_path = os . path . join ( job_dir job_runtime_conf . json ) with open ( submit_path w ) as fout : fout . write ( json . dumps ( load_conf )) result = self . client . model . load ( submit_path )
def load_model(self, load_conf):
        """
        with tempfile.TemporaryDirectory() as job_dir:
            submit_path = os.path.join(job_dir, "job_runtime_conf.json")
            with open(submit_path, "w") as fout:
                fout.write(json.dumps(load_conf))
        result = self.client.model.load(submit_path)
        """
        result = self.client.model.load(load_conf)
        if result is None or 'retcode' not in result:
            raise ValueError("Call flow load failed, check if fate_flow server is up!")
        elif result["retcode"] != 0:
            raise ValueError("Cannot load model, error msg is {}".format(result["retmsg"]))
        else:
            return result["data"]
def load_model ( self , load_conf ) : result = self . client . model . load ( load_conf ) if result is None or 'retcode' not in result : raise ValueError ( "Call flow load failed, check if fate_flow server is up!" ) elif result [ "retcode" ] != 0 : raise ValueError ( "Cannot load model, error msg is {}" . format ( result [ "retmsg" ] ) ) else : return result [ "data" ]