duongthienz commited on
Commit
1d70b74
·
verified ·
1 Parent(s): 7793e68

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +4 -3
ui.py CHANGED
@@ -405,9 +405,10 @@ def render_multifile_summary(plotly_config=None):
405
  # Build consistent color maps using the same _PALETTE as per-file charts
406
  # Voice category colors — always fixed
407
  voice_color_map = {
408
- "Single Voice": utils._PALETTE[0], # red shade 0
409
- "Multi Voice": utils._PALETTE[9], # green shade 0
410
- "No Voice": utils._PALETTE[-1], # grey
 
411
  }
412
  # Role/speaker colors — cycle through _SPEAKER_PALETTE by position
413
  role_color_map = {
 
405
  # Build consistent color maps using the same _PALETTE as per-file charts
406
  # Voice category colors — always fixed
407
  voice_color_map = {
408
+ "Single Voice": utils._PALETTE[0], # reserved
409
+ "Multi Voice": utils._PALETTE[9], # reserved
410
+ "No Voice": utils._PALETTE[24], # reserved
411
+ "Unassigned": utils._PALETTE[31] if len(utils._PALETTE) > 31 else "#777a7d",
412
  }
413
  # Role/speaker colors — cycle through _SPEAKER_PALETTE by position
414
  role_color_map = {