SHELLAPANDIANGANHUNGING commited on
Commit
64968dc
·
verified ·
1 Parent(s): af7b1cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -1155,7 +1155,7 @@ except Exception as e:
1155
 
1156
  # ... (kode sebelumnya tetap sama) ...
1157
 
1158
- st.subheader("OBJECTIVE 5: See your team’s fatigue risk gradient at a glance!")
1159
 
1160
  # Custom CSS — tetap seperti sebelumnya (sudah sesuai preferensi)
1161
  st.markdown("""
@@ -1383,26 +1383,26 @@ else:
1383
  # ===============================================================
1384
  # LEGEND — UPDATED: Stable → One Time Event, Gray → Yellow
1385
  # ===============================================================
1386
- st.subheader("Risk Gradient Legend")
1387
  st.markdown("""
1388
  <div class="legend-container">
1389
  <div class="legend-box">
1390
  <div class="legend-title">Worsening Trends (Positive Slope):</div>
1391
  <div class="legend-item">
1392
  <div class="legend-color" style="background-color: #d32f2f;"></div>
1393
- <span>Very High Risk (≥1.5)</span>
1394
  </div>
1395
  <div class="legend-item">
1396
  <div class="legend-color" style="background-color: #e57373;"></div>
1397
- <span>High Risk (1.0–1.5)</span>
1398
  </div>
1399
  <div class="legend-item">
1400
  <div class="legend-color" style="background-color: #ef9a9a;"></div>
1401
- <span>Moderate Risk (0.5–1.0)</span>
1402
  </div>
1403
  <div class="legend-item">
1404
  <div class="legend-color" style="background-color: #ffcdd2;"></div>
1405
- <span>Slight Risk (0–0.5)</span>
1406
  </div>
1407
  </div>
1408
  <div class="legend-box">
@@ -1517,9 +1517,9 @@ else:
1517
  # ===============================================================
1518
  col1, col2 = st.columns(2)
1519
  with col1:
1520
- st.plotly_chart(plot_chart(top_ob, "OB HAULER Operators (Risk Gradient)"), use_container_width=True)
1521
  with col2:
1522
- st.plotly_chart(plot_chart(top_coal, "HAULING COAL Operators (Risk Gradient)"), use_container_width=True)
1523
 
1524
  # ===============================================================
1525
  # AI INSIGHTS — tetap dalam bahasa Inggris, tanpa emoticon
 
1155
 
1156
  # ... (kode sebelumnya tetap sama) ...
1157
 
1158
+ st.subheader("OBJECTIVE 5:See your team’s fatigue Fatigue Hazard Profile!")
1159
 
1160
  # Custom CSS — tetap seperti sebelumnya (sudah sesuai preferensi)
1161
  st.markdown("""
 
1383
  # ===============================================================
1384
  # LEGEND — UPDATED: Stable → One Time Event, Gray → Yellow
1385
  # ===============================================================
1386
+ st.subheader("Hazard Gradient Legend")
1387
  st.markdown("""
1388
  <div class="legend-container">
1389
  <div class="legend-box">
1390
  <div class="legend-title">Worsening Trends (Positive Slope):</div>
1391
  <div class="legend-item">
1392
  <div class="legend-color" style="background-color: #d32f2f;"></div>
1393
+ <span>Very High Worsening (≥1.5)</span>
1394
  </div>
1395
  <div class="legend-item">
1396
  <div class="legend-color" style="background-color: #e57373;"></div>
1397
+ <span>High Worsening (1.0–1.5)</span>
1398
  </div>
1399
  <div class="legend-item">
1400
  <div class="legend-color" style="background-color: #ef9a9a;"></div>
1401
+ <span>Moderate Worsening (0.5–1.0)</span>
1402
  </div>
1403
  <div class="legend-item">
1404
  <div class="legend-color" style="background-color: #ffcdd2;"></div>
1405
+ <span>Slight Worsening (0–0.5)</span>
1406
  </div>
1407
  </div>
1408
  <div class="legend-box">
 
1517
  # ===============================================================
1518
  col1, col2 = st.columns(2)
1519
  with col1:
1520
+ st.plotly_chart(plot_chart(top_ob, "OB HAULER Operators (Hazard Gradient)"), use_container_width=True)
1521
  with col2:
1522
+ st.plotly_chart(plot_chart(top_coal, "HAULING COAL Operators (Hazard Gradient)"), use_container_width=True)
1523
 
1524
  # ===============================================================
1525
  # AI INSIGHTS — tetap dalam bahasa Inggris, tanpa emoticon