MCPcopy Create free account
hub / github.com/InternScience/InternAgent / save_json

Function save_json

tasks/AutoTTS/code/experiment/utils.py:69–71  ·  view source on GitHub ↗
(filepath, data)

Source from the content-addressed store, hash-verified

67 return True
68
69def save_json(filepath, data):
70 with open(filepath, "w") as f:
71 json.dump(data, f, indent=2)
72
73def load_json(filepath):
74 if os.path.exists(filepath):

Callers 2

runMethod · 0.90
optimize_datasetFunction · 0.90

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected