SamanthaStorm commited on
Commit
2796d42
·
verified ·
1 Parent(s): 867b307

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,8 +79,8 @@ def interpret_abuse_level(score):
79
 
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
 
79
 
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