MCPcopy Create free account
hub / github.com/Hunyuan-PromptEnhancer/PromptEnhancer / write_json

Function write_json

t2i_keypoints_eval.py:54–56  ·  view source on GitHub ↗
(data, path: str, encoding: str = "utf-8")

Source from the content-addressed store, hash-verified

52
53
54def write_json(data, path: str, encoding: str = "utf-8") -> None:
55 with open(path, "w", encoding=encoding) as f:
56 json.dump(data, f, ensure_ascii=False, indent=4)
57
58
59# --------------------------------------------------------------------------- #

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected