Muhammed Essam commited on
Commit
007b880
·
1 Parent(s): db6d0c8

Fix: Remove undefined keywords attribute from division

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,8 +73,8 @@ def format_division_matches(matches, names):
73
 
74
  output.append(f"**{i}. {match.division}**")
75
  output.append(f" - Confidence: {confidence_pct:.1f}% {confidence_bar}")
76
- output.append(f" - Department: {match.department}")
77
- output.append(f" - Keywords: {', '.join(match.keywords[:3])}")
78
  output.append("")
79
 
80
  return "\n".join(output)
 
73
 
74
  output.append(f"**{i}. {match.division}**")
75
  output.append(f" - Confidence: {confidence_pct:.1f}% {confidence_bar}")
76
+ if match.department:
77
+ output.append(f" - Department: {match.department}")
78
  output.append("")
79
 
80
  return "\n".join(output)