Datasets:
Download code/robohome/src/artifact_runtime.py from RoboParty/RoboHome: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/datasets/RoboParty/RoboHome/resolve/main/code/robohome/src/artifact_runtime.py
- Command line
-
hf download hf://datasets/RoboParty/RoboHome/code/robohome/src/artifact_runtime.py
-
curl -L -o artifact_runtime.py https://huggingface.co/datasets/RoboParty/RoboHome/resolve/main/code/robohome/src/artifact_runtime.py
382 Bytes
| """Opt-in asset-owned artifact reuse; scene decisions remain case-local.""" | |
| from pathlib import Path | |
| def configure_artifact_reuse(runtime, root=None): | |
| value = root or runtime.get('artifact_cache_root') | |
| if value is None: | |
| return | |
| path = Path(value).expanduser().resolve() | |
| path.mkdir(parents=True, exist_ok=True) | |
| runtime['artifact_cache_root'] = str(path) | |