Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update ui.py
Browse files
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],
|
| 409 |
-
"Multi Voice": utils._PALETTE[9],
|
| 410 |
-
"No Voice": utils._PALETTE[
|
|
|
|
| 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 = {
|