SamanthaStorm commited on
Commit
931f75a
·
verified ·
1 Parent(s): 5795ebb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def analyze_messages(input_text, risk_flags):
82
  if not input_text:
83
  return "Please enter a message for analysis."
84
 
85
- motif_flags = detect_motifs(input_text)
86
  risk_flags = list(set(risk_flags + motif_flags)) if risk_flags else motif_flags
87
 
88
  sentiment = custom_sentiment(input_text)
 
82
  if not input_text:
83
  return "Please enter a message for analysis."
84
 
85
+ motif_flags, matched_phrases = detect_motifs(input_text)
86
  risk_flags = list(set(risk_flags + motif_flags)) if risk_flags else motif_flags
87
 
88
  sentiment = custom_sentiment(input_text)