Download CF_CodeDebugCriticWithPlan.py from aiflows/CCFlows: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/aiflows/CCFlows/resolve/main/CF_CodeDebugCriticWithPlan.py
- Command line
-
hf download hf://aiflows/CCFlows/CF_CodeDebugCriticWithPlan.py
-
curl -L -o CF_CodeDebugCriticWithPlan.py https://huggingface.co/aiflows/CCFlows/resolve/main/CF_CodeDebugCriticWithPlan.py
368 Bytes
| from aiflows.base_flows import SequentialFlow | |
| class CF_CodeDebugCriticWithPlan(SequentialFlow): | |
| def __init__(self, **kwargs): | |
| super().__init__(**kwargs) | |
| def _early_exit(self): | |
| if self.flow_state.get("all_tests_passed", False): | |
| self.flow_state["code_feedback"] = None | |
| return True | |
| return super()._early_exit() | |