Download CF_CodeDebugCollab.py from martinjosifoski/CC_flows: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/martinjosifoski/CC_flows/resolve/main/CF_CodeDebugCollab.py
- Command line
-
hf download hf://martinjosifoski/CC_flows/CF_CodeDebugCollab.py
-
curl -L -o CF_CodeDebugCollab.py https://huggingface.co/martinjosifoski/CC_flows/resolve/main/CF_CodeDebugCollab.py
316 Bytes
| from flows.base_flows import GeneratorCriticFlow | |
| class CF_CodeDebugCollab(GeneratorCriticFlow): | |
| def __init__(self, **kwargs): | |
| super().__init__(**kwargs) | |
| def _early_exit(self): | |
| if self.flow_state.get("all_tests_passed", False): | |
| return True | |
| return super()._early_exit() | |