Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -510,13 +510,6 @@ def analyze_single_message(text, thresholds):
|
|
510 |
if "insults" not in threshold_labels:
|
511 |
threshold_labels.append("insults")
|
512 |
|
513 |
-
# Replace 'insults' with descriptive label in output
|
514 |
-
if insult_label_display and "insults" in threshold_labels:
|
515 |
-
threshold_labels = [
|
516 |
-
insult_label_display if label == "insults" else label
|
517 |
-
for label in threshold_labels
|
518 |
-
]
|
519 |
-
|
520 |
# Debug
|
521 |
print(f"Emotional Tone Tag: {tone_tag}")
|
522 |
print("Emotion Profile:")
|
|
|
510 |
if "insults" not in threshold_labels:
|
511 |
threshold_labels.append("insults")
|
512 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
513 |
# Debug
|
514 |
print(f"Emotional Tone Tag: {tone_tag}")
|
515 |
print("Emotion Profile:")
|