Download unionmind/supported_observations/data.py from nur-dev/unionmind-predictive-representations: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/nur-dev/unionmind-predictive-representations/resolve/main/unionmind/supported_observations/data.py
- Command line
-
hf download hf://nur-dev/unionmind-predictive-representations/unionmind/supported_observations/data.py
-
curl -L -o data.py https://huggingface.co/nur-dev/unionmind-predictive-representations/resolve/main/unionmind/supported_observations/data.py
260 Bytes
| """Exact helper functions extracted from the frozen source adapter.""" | |
| import hashlib | |
| from pathlib import Path | |
| def sha(path): | |
| h=hashlib.sha256() | |
| with Path(path).open('rb') as f: | |
| while part:=f.read(8<<20):h.update(part) | |
| return h.hexdigest() | |