Download PASTIS/main_method/code/notebook_helpers.py from Dhruv1000/TSRDA: direct link, hf CLI and curl.
- Browser
- Download file 173 Bytes
-
https://huggingface.co/Dhruv1000/TSRDA/resolve/main/PASTIS/main_method/code/notebook_helpers.py
- Command line
-
hf download hf://Dhruv1000/TSRDA/PASTIS/main_method/code/notebook_helpers.py
-
curl -L -o notebook_helpers.py https://huggingface.co/Dhruv1000/TSRDA/resolve/main/PASTIS/main_method/code/notebook_helpers.py
173 Bytes
| from pathlib import Path | |
| import json | |
| def write_json(path,data): | |
| path=Path(path);path.parent.mkdir(parents=True,exist_ok=True);path.write_text(json.dumps(data,indent=2)) | |