Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1407,8 +1407,9 @@ else:
|
|
| 1407 |
<div class="legend-color" style="background-color: #ffcdd2;"></div>
|
| 1408 |
<span>Slight Risk (0 – 0.5)</span>
|
| 1409 |
</div>
|
| 1410 |
-
<
|
| 1411 |
-
|
|
|
|
| 1412 |
</div>
|
| 1413 |
|
| 1414 |
<!-- Improving Trends (Negative Slope) -->
|
|
@@ -1430,8 +1431,9 @@ else:
|
|
| 1430 |
<div class="legend-color" style="background-color: #c8e6c9;"></div>
|
| 1431 |
<span>Slight Improvement (−0.5 to 0)</span>
|
| 1432 |
</div>
|
| 1433 |
-
<
|
| 1434 |
-
|
|
|
|
| 1435 |
</div>
|
| 1436 |
|
| 1437 |
<!-- One-Time Events (Zero Slope) -->
|
|
@@ -1441,11 +1443,11 @@ else:
|
|
| 1441 |
<div class="legend-color" style="background-color: #FFD700;"></div>
|
| 1442 |
<span>One Time Event (0)</span>
|
| 1443 |
</div>
|
| 1444 |
-
<
|
| 1445 |
-
|
|
|
|
| 1446 |
</div>
|
| 1447 |
-
</div>
|
| 1448 |
-
""", unsafe_allow_html=True)
|
| 1449 |
# ===============================================================
|
| 1450 |
# PLOT FUNCTION — UPDATED: color for slope=0 is now #FFD700
|
| 1451 |
# ===============================================================
|
|
|
|
| 1407 |
<div class="legend-color" style="background-color: #ffcdd2;"></div>
|
| 1408 |
<span>Slight Risk (0 – 0.5)</span>
|
| 1409 |
</div>
|
| 1410 |
+
<i style="display: block; margin-top: 12px; font-size: 12px; color: #666; font-style: italic;">
|
| 1411 |
+
Note: Positive slope indicates increasing fatigue event frequency over weeks — requires immediate risk mitigation.
|
| 1412 |
+
</i>
|
| 1413 |
</div>
|
| 1414 |
|
| 1415 |
<!-- Improving Trends (Negative Slope) -->
|
|
|
|
| 1431 |
<div class="legend-color" style="background-color: #c8e6c9;"></div>
|
| 1432 |
<span>Slight Improvement (−0.5 to 0)</span>
|
| 1433 |
</div>
|
| 1434 |
+
<i style="display: block; margin-top: 12px; font-size: 12px; color: #666; font-style: italic;">
|
| 1435 |
+
Note: Negative slope reflects a consistent decline in fatigue events — indicates effective fatigue management practices.
|
| 1436 |
+
</i>
|
| 1437 |
</div>
|
| 1438 |
|
| 1439 |
<!-- One-Time Events (Zero Slope) -->
|
|
|
|
| 1443 |
<div class="legend-color" style="background-color: #FFD700;"></div>
|
| 1444 |
<span>One Time Event (0)</span>
|
| 1445 |
</div>
|
| 1446 |
+
<i style="display: block; margin-top: 12px; font-size: 12px; color: #666; font-style: italic;">
|
| 1447 |
+
Note: Slope = 0 by definition when data exists for only one week — trend assessment is not applicable.
|
| 1448 |
+
</i>
|
| 1449 |
</div>
|
| 1450 |
+
</div>""", unsafe_allow_html=True)
|
|
|
|
| 1451 |
# ===============================================================
|
| 1452 |
# PLOT FUNCTION — UPDATED: color for slope=0 is now #FFD700
|
| 1453 |
# ===============================================================
|