Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -402,7 +402,7 @@ def analyze_single_message(text, thresholds):
|
|
402 |
]
|
403 |
|
404 |
label_scores = {label: score for label, score in zip(LABELS, scores)}
|
405 |
-
|
406 |
|
407 |
# 🛡️ Prevent obscure language from being chosen unless it crosses a hard threshold
|
408 |
MIN_OBSCURE_SCORE = 0.30
|
|
|
402 |
]
|
403 |
|
404 |
label_scores = {label: score for label, score in zip(LABELS, scores)}
|
405 |
+
label = score_to_label(score) if score is not None else "Unknown"
|
406 |
|
407 |
# 🛡️ Prevent obscure language from being chosen unless it crosses a hard threshold
|
408 |
MIN_OBSCURE_SCORE = 0.30
|