SamanthaStorm commited on
Commit
606058e
·
verified ·
1 Parent(s): abc5709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -701,7 +701,8 @@ def analyze_composite(msg1, date1, msg2, date2, msg3, date3, *answers_and_none):
701
 
702
  most_common_stage = max(set(stages), key=stages.count)
703
  stage_text = RISK_STAGE_LABELS[most_common_stage]
704
-
 
705
  avg_darvo = round(sum(darvo_scores) / len(darvo_scores), 3)
706
  darvo_blurb = ""
707
  if avg_darvo > 0.25:
 
701
 
702
  most_common_stage = max(set(stages), key=stages.count)
703
  stage_text = RISK_STAGE_LABELS[most_common_stage]
704
+ # Derive top label list for each message
705
+ top_labels = [r[0][1][0] if r[0][1] else r[0][2][0][0] for r in results]
706
  avg_darvo = round(sum(darvo_scores) / len(darvo_scores), 3)
707
  darvo_blurb = ""
708
  if avg_darvo > 0.25: