MCPcopy Create free account
hub / github.com/ace-step/ACE-Step / load_json

Method load_json

acestep/data_sampler.py:16–18  ·  view source on GitHub ↗
(self, file_path)

Source from the content-addressed store, hash-verified

14 self.zh_rap_lora_input_params_files += list(Path(ZH_RAP_LORA_ROOT_DIR).glob("*.json"))
15
16 def load_json(self, file_path):
17 with open(file_path, "r", encoding="utf-8") as f:
18 return json.load(f)
19
20 def sample(self, lora_name_or_path=None):
21 if lora_name_or_path is None or lora_name_or_path == "none":

Callers 1

sampleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected