MCPcopy Create free account
hub / github.com/huggingface/transformers / save_json

Function save_json

examples/seq2seq/utils.py:204–206  ·  view source on GitHub ↗
(content, path)

Source from the content-addressed store, hash-verified

202
203
204def save_json(content, path):
205 with open(path, "w") as f:
206 json.dump(content, f, indent=4)
207
208
209def load_json(path):

Callers 2

save_metricsMethod · 0.90
save_git_infoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected