Download vlib/ctx.py from Wiself/Voice: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/Wiself/Voice/resolve/main/vlib/ctx.py
- Command line
-
hf download hf://Wiself/Voice/vlib/ctx.py
-
curl -L -o ctx.py https://huggingface.co/Wiself/Voice/resolve/main/vlib/ctx.py
516 Bytes
| """Shared constants and globals: single definition for paths, version, verbosity.""" | |
| from pathlib import Path | |
| VOICES_DIR = Path.home() / ".voices" | |
| HF_TOKEN_PATH = VOICES_DIR / ".hf_token" | |
| OPERATIONS_LOG = VOICES_DIR / "operations.log" | |
| REPORTS_JSONL = VOICES_DIR / "reports.jsonl" | |
| REPORTS_OUTBOX = VOICES_DIR / "outbox" | |
| REPORTS_DATASET_ID = "Wiself/voice-reports" | |
| REPORTS_REMOTE_PREFIX = "data/reports-" | |
| VERSION = "3.1" | |
| DTYPE_BYTES = {"F32": 4, "F16": 2, "BF16": 2} | |
| VERBOSE = False | |
| QUIET = False | |