n1th1sh commited on
Commit
f3d668f
Β·
verified Β·
1 Parent(s): 54b31e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 30_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 ─────────────────────
 
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 ─────────────────────