File size: 309 Bytes
65e1c10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """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)
|