Download scripts/sitecustomize.py from humanfia-lab/inference-kernels: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/datasets/humanfia-lab/inference-kernels/resolve/main/scripts/sitecustomize.py
- Command line
-
hf download hf://datasets/humanfia-lab/inference-kernels/scripts/sitecustomize.py
-
curl -L -o sitecustomize.py https://huggingface.co/datasets/humanfia-lab/inference-kernels/resolve/main/scripts/sitecustomize.py
309 Bytes
| """Enable serving-worker capture only when explicitly requested by environment.""" | |
| import os | |
| if os.environ.get("INFERENCE_CAPTURE_ROOT"): | |
| try: | |
| from capture_inputs import install | |
| install() | |
| except Exception: | |
| import traceback | |
| traceback.print_exc() | |
| os._exit(70) | |