SHELLAPANDIANGANHUNGING commited on
Commit
07bc1d5
·
verified ·
1 Parent(s): f5200ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -23
app.py CHANGED
@@ -1384,14 +1384,12 @@ else:
1384
  # LEGEND — UPDATED: Stable → One Time Event, Gray → Yellow
1385
  # ===============================================================
1386
  st.subheader("Hazard Gradient Legend")
1387
- st.markdown("""
1388
- <style>
1389
- .legend-container {
1390
  display: flex;
1391
  gap: 20px;
1392
- flex-wrap: wrap;
1393
- }
1394
- .legend-box {
1395
  background: #f9f9f9;
1396
  padding: 12px;
1397
  border-radius: 10px;
@@ -1413,13 +1411,7 @@ st.markdown("""
1413
  height: 18px;
1414
  border-radius: 4px;
1415
  margin-right: 10px;
1416
- }
1417
- </style>
1418
-
1419
- <div class="legend-container">
1420
-
1421
- <!-- Worsening Trends -->
1422
- <div class="legend-box">
1423
  <div class="legend-title">Worsening Trends (Positive Slope):</div>
1424
 
1425
  <div class="legend-item">
@@ -1443,11 +1435,7 @@ st.markdown("""
1443
  </div>
1444
 
1445
  <br>
1446
- <i>Note: Worsening trends indicate increasing fatigue frequency over weeks.</i>
1447
- </div>
1448
-
1449
- <!-- Improving Trends -->
1450
- <div class="legend-box">
1451
  <div class="legend-title">Improving Trends (Negative Slope):</div>
1452
 
1453
  <div class="legend-item">
@@ -1473,7 +1461,6 @@ st.markdown("""
1473
  <br>
1474
  <i>Note: Improving trends indicate decreasing fatigue frequency over weeks.</i>
1475
  </div>
1476
-
1477
  <!-- One-Time Events -->
1478
  <div class="legend-box">
1479
  <div class="legend-title">One-Time Events (Zero Slope):</div>
@@ -1485,10 +1472,7 @@ st.markdown("""
1485
 
1486
  <br>
1487
  <i>Note: Applies when an operator has data in only one week (slope = 0).</i>
1488
- </div>
1489
-
1490
- </div>
1491
- """, unsafe_allow_html=True)
1492
 
1493
 
1494
  # ===============================================================
 
1384
  # LEGEND — UPDATED: Stable → One Time Event, Gray → Yellow
1385
  # ===============================================================
1386
  st.subheader("Hazard Gradient Legend")
1387
+ st.markdown("""
1388
+ <style>
1389
+ .legend-container {
1390
  display: flex;
1391
  gap: 20px;
1392
+ flex-wrap: wrap;}.legend-box {
 
 
1393
  background: #f9f9f9;
1394
  padding: 12px;
1395
  border-radius: 10px;
 
1411
  height: 18px;
1412
  border-radius: 4px;
1413
  margin-right: 10px;
1414
+ }</style><div class="legend-container"><!-- Worsening Trends --><div class="legend-box">
 
 
 
 
 
 
1415
  <div class="legend-title">Worsening Trends (Positive Slope):</div>
1416
 
1417
  <div class="legend-item">
 
1435
  </div>
1436
 
1437
  <br>
1438
+ <i>Note: Worsening trends indicate increasing fatigue frequency over weeks.</i></div><!-- Improving Trends --><div class="legend-box">
 
 
 
 
1439
  <div class="legend-title">Improving Trends (Negative Slope):</div>
1440
 
1441
  <div class="legend-item">
 
1461
  <br>
1462
  <i>Note: Improving trends indicate decreasing fatigue frequency over weeks.</i>
1463
  </div>
 
1464
  <!-- One-Time Events -->
1465
  <div class="legend-box">
1466
  <div class="legend-title">One-Time Events (Zero Slope):</div>
 
1472
 
1473
  <br>
1474
  <i>Note: Applies when an operator has data in only one week (slope = 0).</i>
1475
+ </div></div>""", unsafe_allow_html=True)
 
 
 
1476
 
1477
 
1478
  # ===============================================================