Spaces:
Sleeping
Sleeping
Download debug_env/tasks/task3/helper_solution.py from VanshGoel1/debug-env: direct link, hf CLI and curl.
- Browser
- Download file 147 Bytes
-
https://huggingface.co/spaces/VanshGoel1/debug-env/resolve/main/debug_env/tasks/task3/helper_solution.py
- Command line
-
hf download hf://spaces/VanshGoel1/debug-env/debug_env/tasks/task3/helper_solution.py
-
curl -L -o helper_solution.py https://huggingface.co/spaces/VanshGoel1/debug-env/resolve/main/debug_env/tasks/task3/helper_solution.py
147 Bytes
| def clamp(value, min_val, max_val): | |
| if value < min_val: | |
| return min_val | |
| if value > max_val: | |
| return max_val | |
| return value | |