horriblecpp commited on
Commit
9762ba4
·
1 Parent(s): 799bf6b

Fix TypeError in Intents expander logic

Browse files
Files changed (1) hide show
  1. frontend/app.py +1 -1
frontend/app.py CHANGED
@@ -878,7 +878,7 @@ with tab_intents:
878
  ):
879
  for il in intent_labels:
880
  count = sum(1 for r in rows_i if r["domain"] == dom and r["intent"] == il)
881
- is_match = classified and classified.get("intent") == il and classified.get("domain") == dom
882
  prefix = "🎯 " if is_match else ""
883
 
884
  # Show utterances in a nested expander
 
878
  ):
879
  for il in intent_labels:
880
  count = sum(1 for r in rows_i if r["domain"] == dom and r["intent"] == il)
881
+ is_match = bool(classified and classified.get("intent") == il and classified.get("domain") == dom)
882
  prefix = "🎯 " if is_match else ""
883
 
884
  # Show utterances in a nested expander