Download release/scripts/validate_release.py from AI45Research/ManipulationArena: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/datasets/AI45Research/ManipulationArena/resolve/main/release/scripts/validate_release.py
- Command line
-
hf download hf://datasets/AI45Research/ManipulationArena/release/scripts/validate_release.py
-
curl -L -o validate_release.py https://huggingface.co/datasets/AI45Research/ManipulationArena/resolve/main/release/scripts/validate_release.py
418 Bytes
| #!/usr/bin/env python3 | |
| from pathlib import Path | |
| import json | |
| import sys | |
| sys.path.insert(0, str(Path(__file__).resolve().parents[1])) | |
| from manipulationarena.validation import validate | |
| if __name__ == '__main__': | |
| root = Path(__file__).resolve().parents[1] | |
| result = validate(root, require_checksums=True) | |
| print(json.dumps(result, ensure_ascii=False, indent=2)) | |
| raise SystemExit(0 if result['valid'] else 1) | |