Nanda Kumar Kondreddy
Phase 2: Benchmark Quality Upgrades - Progressive graders, realistic multi-bug tasks, ground_truth exposure
b43aff5 Download test_env.py from DeepikaChintamreddy/config-debug-env: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/DeepikaChintamreddy/config-debug-env/resolve/main/test_env.py
- Command line
-
hf download hf://spaces/DeepikaChintamreddy/config-debug-env/test_env.py
-
curl -L -o test_env.py https://huggingface.co/spaces/DeepikaChintamreddy/config-debug-env/resolve/main/test_env.py
540 Bytes
| from server.config_debug_environment import ConfigDebugEnvironment | |
| from server.models import ConfigDebugAction | |
| from server.tasks.task_registry import get_task | |
| env = ConfigDebugEnvironment() | |
| # ONLY ONE RESET | |
| obs = env.reset() | |
| for i in range(3): | |
| print(f"\n--- Step {i+1} ---") | |
| task = get_task(obs.task_id) | |
| correct_output = task.ground_truth | |
| action = ConfigDebugAction(fixed_config=correct_output) | |
| obs = env.step(action) | |
| print("Task ID:", obs.task_id) | |
| print("Reward:", obs.reward) | |
| print("Done:", obs.done) |