Spaces:
Sleeping
Sleeping
Download app/training/process_feedback.py from TheJackBright/polyguard-openenv: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/TheJackBright/polyguard-openenv/resolve/main/app/training/process_feedback.py
- Command line
-
hf download hf://spaces/TheJackBright/polyguard-openenv/app/training/process_feedback.py
-
curl -L -o process_feedback.py https://huggingface.co/spaces/TheJackBright/polyguard-openenv/resolve/main/app/training/process_feedback.py
379 Bytes
| """Process-aware feedback checks.""" | |
| from __future__ import annotations | |
| def build_process_feedback(parsed: bool, legal: bool, risk_reduced: bool, abstain_justified: bool) -> dict[str, bool]: | |
| return { | |
| "parsed_correctly": parsed, | |
| "chosen_candidate_legal": legal, | |
| "risk_reduced": risk_reduced, | |
| "abstention_justified": abstain_justified, | |
| } | |