Download export_utils.py from GodsDevProject/FOIA_Declassified_Document_Search: direct link, hf CLI and curl.
- Browser
- Download file 150 Bytes
-
https://huggingface.co/spaces/GodsDevProject/FOIA_Declassified_Document_Search/resolve/main/export_utils.py
- Command line
-
hf download hf://spaces/GodsDevProject/FOIA_Declassified_Document_Search/export_utils.py
-
curl -L -o export_utils.py https://huggingface.co/spaces/GodsDevProject/FOIA_Declassified_Document_Search/resolve/main/export_utils.py
150 Bytes
| import json | |
| def export_json(data): | |
| path = "/tmp/results.json" | |
| with open(path, "w") as f: | |
| json.dump(data, f, indent=2) | |
| return path |