Spaces:
Running on Zero
Running on Zero
Download backend/llama.cpp/tools/ui/src/lib/constants/binary-detection.ts from kazutab/mindmap-studio: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/kazutab/mindmap-studio/resolve/main/backend/llama.cpp/tools/ui/src/lib/constants/binary-detection.ts
- Command line
-
hf download hf://spaces/kazutab/mindmap-studio/backend/llama.cpp/tools/ui/src/lib/constants/binary-detection.ts
-
curl -L -o binary-detection.ts https://huggingface.co/spaces/kazutab/mindmap-studio/resolve/main/backend/llama.cpp/tools/ui/src/lib/constants/binary-detection.ts
298 Bytes
| import type { BinaryDetectionOptions } from '$lib/types'; | |
| export const DEFAULT_BINARY_DETECTION_OPTIONS: BinaryDetectionOptions = { | |
| prefixLength: 1024 * 10, // Check the first 10KB of the string | |
| suspiciousCharThresholdRatio: 0.15, // Allow up to 15% suspicious chars | |
| maxAbsoluteNullBytes: 2 | |
| }; | |