Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ API_SECRET = os.getenv("API_SECRET", HF_TOKEN)
|
|
| 51 |
MAX_LEN = 512 # model window (tokens)
|
| 52 |
STRIDE = 128 # overlap between windows β no blind spots at joins
|
| 53 |
THRESHOLD = 0.0 # logit threshold (UI slider can tighten it)
|
| 54 |
-
MAX_TEXT_CHARS =
|
| 55 |
MAX_WINDOWS = 96 # hard ceiling on windows per request (runaway guard)
|
| 56 |
|
| 57 |
# ββ Thread count: cgroup CPU quota, not sched_getaffinity βββββββββββββββββββββ
|
|
|
|
| 51 |
MAX_LEN = 512 # model window (tokens)
|
| 52 |
STRIDE = 128 # overlap between windows β no blind spots at joins
|
| 53 |
THRESHOLD = 0.0 # logit threshold (UI slider can tighten it)
|
| 54 |
+
MAX_TEXT_CHARS = 50_000 # keep in sync with DETECT_MAX_CHARS in pii.ts
|
| 55 |
MAX_WINDOWS = 96 # hard ceiling on windows per request (runaway guard)
|
| 56 |
|
| 57 |
# ββ Thread count: cgroup CPU quota, not sched_getaffinity βββββββββββββββββββββ
|