def load_model(path): with open(path, 'rb') as fp: js = json.load(fp) return {'model': data_json.from_json(js)}
def get(key): return data_json.from_json(gateway.get_kv_data(key))
def load_model(path): with open(path, 'rb') as fp: js = json.load(fp) return {'model': data_json.from_json(js)}
def get(key): return data_json.from_json(gateway.get_kv_data(key))