Download source/scripts/show.py from rca-umb/five-desks-control: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/datasets/rca-umb/five-desks-control/resolve/main/source/scripts/show.py
- Command line
-
hf download hf://datasets/rca-umb/five-desks-control/source/scripts/show.py
-
curl -L -o show.py https://huggingface.co/datasets/rca-umb/five-desks-control/resolve/main/source/scripts/show.py
564 Bytes
| """Print one generated instance with its expected answer (for manual review).""" | |
| import sys | |
| sys.path.insert(0, ".") | |
| from five_desks.environment import FiveDesksEnvironment # noqa: E402 | |
| from five_desks.tasks import build # noqa: E402 | |
| task_id, seed = sys.argv[1], int(sys.argv[2]) if len(sys.argv) > 2 else 0 | |
| env = FiveDesksEnvironment() | |
| print(env.reset(seed=seed, task_id=task_id).output) | |
| inst = build(task_id, seed) | |
| for name, body in inst.files.items(): | |
| print(f"--- {name}\n{body}", end="") | |
| print("--- expected:", {p.key: p.expected for p in inst.parts}) | |