Spaces:
Runtime error
Runtime error
Download frontend/src/lib/debugSettings.ts from npisb/pipecountapp-dev: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/npisb/pipecountapp-dev/resolve/main/frontend/src/lib/debugSettings.ts
- Command line
-
hf download hf://spaces/npisb/pipecountapp-dev/frontend/src/lib/debugSettings.ts
-
curl -L -o debugSettings.ts https://huggingface.co/spaces/npisb/pipecountapp-dev/resolve/main/frontend/src/lib/debugSettings.ts
377 Bytes
| const STORAGE_KEY = 'pipecount-debug-confidence-labels' | |
| export function loadShowConfidenceLabels(): boolean { | |
| try { | |
| return localStorage.getItem(STORAGE_KEY) === '1' | |
| } catch { | |
| return false | |
| } | |
| } | |
| export function saveShowConfidenceLabels(enabled: boolean): void { | |
| try { | |
| localStorage.setItem(STORAGE_KEY, enabled ? '1' : '0') | |
| } catch { | |
| /* ignore */ | |
| } | |
| } | |