Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
69
def
save_json(filepath, data):
70
with
open(filepath,
"w"
)
as
f:
71
json.dump(data, f, indent=2)
72
73
def
load_json(filepath):
74
if
os.path.exists(filepath):
Callers
2
run
Method · 0.90
optimize_dataset
Function · 0.90
Calls
1
dump
Method · 0.45
Tested by
no test coverage detected