Spaces:
Runtime error
Runtime error
Download utils.py from tanlocc/geminsights: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/tanlocc/geminsights/resolve/main/utils.py
- Command line
-
hf download hf://spaces/tanlocc/geminsights/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/tanlocc/geminsights/resolve/main/utils.py
245 Bytes
| import json | |
| from box import ConfigBox | |
| def load_json(file): | |
| with open(path) as f: | |
| content = json.load(f) | |
| return ConfigBox(content) | |
| def save_json(file, content): | |
| with open(path, "w") as f: | |
| json.dump(data, f, indent=4) |