Download src/lib/utils/debug.ts from huggingface/inference-playground: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/spaces/huggingface/inference-playground/resolve/refs%2Fpr%2F13/src/lib/utils/debug.ts
- Command line
-
hf download hf://spaces/huggingface/inference-playground@refs/pr/13/src/lib/utils/debug.ts
-
curl -L -o debug.ts https://huggingface.co/spaces/huggingface/inference-playground/resolve/refs%2Fpr%2F13/src/lib/utils/debug.ts
262 Bytes
| const DEBUG_LOG = true; | |
| export const debugLog = (...args: unknown[]) => { | |
| if (!DEBUG_LOG) return; | |
| console.log("[LOG DEBUG]", ...args); | |
| }; | |
| export const debugError = (...args: unknown[]) => { | |
| if (!DEBUG_LOG) return; | |
| console.error("[LOG DEBUG]", ...args); | |
| }; | |