Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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 |
# ============================
|