Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def interpret_abuse_level(score):
|
|
80 |
def analyze_messages(input_text, risk_flags):
|
81 |
input_text = input_text.strip()
|
82 |
if not input_text:
|
83 |
-
|
84 |
|
85 |
motif_tags, matched_phrases = tag_motifs(input_text)
|
86 |
contextual_flags = risk_flags + motif_tags # Combine checkbox and motif flags
|
|
|
80 |
def analyze_messages(input_text, risk_flags):
|
81 |
input_text = input_text.strip()
|
82 |
if not input_text:
|
83 |
+
return "Please enter a message for analysis."
|
84 |
|
85 |
motif_tags, matched_phrases = tag_motifs(input_text)
|
86 |
contextual_flags = risk_flags + motif_tags # Combine checkbox and motif flags
|