Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -282,9 +282,9 @@ try:
|
|
| 282 |
# Use a shared startingHue so both color pools step evenly from the same
|
| 283 |
# point, reducing the chance of similar adjacent colors.
|
| 284 |
_hue = int(random.random() * 180)
|
| 285 |
-
catTypeColors = utils.colorsCSS(3, startingHue=_hue)
|
| 286 |
allColors = utils.colorsCSS(len(speakerNames) + len(st.session_state.categories),
|
| 287 |
-
startingHue=_hue)
|
| 288 |
speakerColors = allColors[:len(speakerNames)]
|
| 289 |
catColors = allColors[len(speakerNames):]
|
| 290 |
|
|
|
|
| 282 |
# Use a shared startingHue so both color pools step evenly from the same
|
| 283 |
# point, reducing the chance of similar adjacent colors.
|
| 284 |
_hue = int(random.random() * 180)
|
| 285 |
+
catTypeColors = utils.colorsCSS(3, startingHue=_hue, pool=24)
|
| 286 |
allColors = utils.colorsCSS(len(speakerNames) + len(st.session_state.categories),
|
| 287 |
+
startingHue=_hue, pool=24)
|
| 288 |
speakerColors = allColors[:len(speakerNames)]
|
| 289 |
catColors = allColors[len(speakerNames):]
|
| 290 |
|