Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1156,10 +1156,7 @@ import streamlit as st
|
|
| 1156 |
import pandas as pd
|
| 1157 |
import numpy as np
|
| 1158 |
import plotly.graph_objects as go
|
| 1159 |
-
|
| 1160 |
-
# =================== OBJECTIVE 5: Operator Fatigue Risk Gradient Dashboard =====================
|
| 1161 |
-
# ... (kode sebelumnya tetap sama) ...
|
| 1162 |
-
st.subheader("OBJECTIVE 5: See your team’s Fatigue Hazard Profile!")
|
| 1163 |
|
| 1164 |
# Custom CSS — tetap seperti sebelumnya (sudah sesuai preferensi)
|
| 1165 |
st.markdown("""
|
|
@@ -1558,7 +1555,7 @@ else:
|
|
| 1558 |
|
| 1559 |
st.markdown(f"""
|
| 1560 |
<div class="ai-insight-box">
|
| 1561 |
-
<div class="ai-insight-title">
|
| 1562 |
<ul style="padding-left: 20px; margin: 8px 0; line-height: 1.5;">
|
| 1563 |
<li>{ob_insights[0]}</li>
|
| 1564 |
<li>{ob_insights[1]}</li>
|
|
@@ -1591,7 +1588,7 @@ else:
|
|
| 1591 |
|
| 1592 |
st.markdown(f"""
|
| 1593 |
<div class="ai-insight-box">
|
| 1594 |
-
<div class="ai-insight-title">
|
| 1595 |
<ul style="padding-left: 20px; margin: 8px 0; line-height: 1.5;">
|
| 1596 |
<li>{coal_insights[0]}</li>
|
| 1597 |
<li>{coal_insights[1]}</li>
|
|
@@ -1708,7 +1705,12 @@ else:
|
|
| 1708 |
""", unsafe_allow_html=True)
|
| 1709 |
else:
|
| 1710 |
st.info("No HAULING COAL recommendations.")
|
| 1711 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1712 |
st.subheader("OBJECTIVE 6: Instant Insights & Recommendations")
|
| 1713 |
|
| 1714 |
# Membagi tampilan menjadi dua kolom
|
|
|
|
| 1156 |
import pandas as pd
|
| 1157 |
import numpy as np
|
| 1158 |
import plotly.graph_objects as go
|
| 1159 |
+
st.subheader("OBJECTIVE 5: See your team’s fatigue Fatigue Hazard Profile!")
|
|
|
|
|
|
|
|
|
|
| 1160 |
|
| 1161 |
# Custom CSS — tetap seperti sebelumnya (sudah sesuai preferensi)
|
| 1162 |
st.markdown("""
|
|
|
|
| 1555 |
|
| 1556 |
st.markdown(f"""
|
| 1557 |
<div class="ai-insight-box">
|
| 1558 |
+
<div class="ai-insight-title">Risk Summary</div>
|
| 1559 |
<ul style="padding-left: 20px; margin: 8px 0; line-height: 1.5;">
|
| 1560 |
<li>{ob_insights[0]}</li>
|
| 1561 |
<li>{ob_insights[1]}</li>
|
|
|
|
| 1588 |
|
| 1589 |
st.markdown(f"""
|
| 1590 |
<div class="ai-insight-box">
|
| 1591 |
+
<div class="ai-insight-title">Risk Summary</div>
|
| 1592 |
<ul style="padding-left: 20px; margin: 8px 0; line-height: 1.5;">
|
| 1593 |
<li>{coal_insights[0]}</li>
|
| 1594 |
<li>{coal_insights[1]}</li>
|
|
|
|
| 1705 |
""", unsafe_allow_html=True)
|
| 1706 |
else:
|
| 1707 |
st.info("No HAULING COAL recommendations.")
|
| 1708 |
+
|
| 1709 |
+
except Exception as e:
|
| 1710 |
+
st.error(f"Error in Top 10 Operator analysis: {str(e)}")
|
| 1711 |
+
st.exception(e)
|
| 1712 |
+
|
| 1713 |
+
# =================== OBJECTIVE 6: Automated Insights & AI Recommendations =====================
|
| 1714 |
st.subheader("OBJECTIVE 6: Instant Insights & Recommendations")
|
| 1715 |
|
| 1716 |
# Membagi tampilan menjadi dua kolom
|