hudaakram commited on
Commit
46922d4
·
verified ·
1 Parent(s): 83afe82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ THRESH_JSON = os.path.join(MODELS_DIR, "threshold.json") # {"cosine_threshold
86
  # In-memory state
87
  G: np.ndarray | None = None # (N, D) gallery templates, L2-normalized
88
  labels: list[str] | None = None
89
- COSINE_DIST_THRESHOLD: float = 0.35 # distance threshold; lower = stricter
90
 
91
 
92
  # ============================
 
86
  # In-memory state
87
  G: np.ndarray | None = None # (N, D) gallery templates, L2-normalized
88
  labels: list[str] | None = None
89
+ COSINE_SIM_THRESHOLD: float = 0.65 # similarity threshold; higher = stricter
90
 
91
 
92
  # ============================