Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from datetime import datetime, timedelta
|
|
| 7 |
import google.generativeai as genai
|
| 8 |
|
| 9 |
# Page config
|
| 10 |
-
st.set_page_config(page_title="Production Monitor", page_icon="π", layout="wide")
|
| 11 |
|
| 12 |
@st.cache_resource
|
| 13 |
def init_ai():
|
|
@@ -207,7 +207,7 @@ def query_ai(model, stats, question):
|
|
| 207 |
|
| 208 |
# Main app
|
| 209 |
def main():
|
| 210 |
-
st.title("π Production Monitor")
|
| 211 |
st.markdown("*Real-time production analysis dashboard*")
|
| 212 |
|
| 213 |
model = init_ai()
|
|
@@ -299,12 +299,12 @@ def main():
|
|
| 299 |
shift_time_view = st.selectbox("Shift Time Period", ["daily", "weekly", "monthly"], key="shift_time")
|
| 300 |
|
| 301 |
with col_shift_trend1:
|
| 302 |
-
st.markdown("**
|
| 303 |
shift_trend_chart = create_shift_trend_chart(df, shift_time_view)
|
| 304 |
st.plotly_chart(shift_trend_chart, use_container_width=True)
|
| 305 |
|
| 306 |
# Shift comparison charts
|
| 307 |
-
st.markdown("**
|
| 308 |
shift_col1, shift_col2 = st.columns(2)
|
| 309 |
|
| 310 |
with shift_col1:
|
|
|
|
| 7 |
import google.generativeai as genai
|
| 8 |
|
| 9 |
# Page config
|
| 10 |
+
st.set_page_config(page_title="Production Data Monitor Platform β Nilsen Service & Consulting AS", page_icon="π", layout="wide")
|
| 11 |
|
| 12 |
@st.cache_resource
|
| 13 |
def init_ai():
|
|
|
|
| 207 |
|
| 208 |
# Main app
|
| 209 |
def main():
|
| 210 |
+
st.title("π Production Data Monitor Platform β Nilsen Service & Consulting AS")
|
| 211 |
st.markdown("*Real-time production analysis dashboard*")
|
| 212 |
|
| 213 |
model = init_ai()
|
|
|
|
| 299 |
shift_time_view = st.selectbox("Shift Time Period", ["daily", "weekly", "monthly"], key="shift_time")
|
| 300 |
|
| 301 |
with col_shift_trend1:
|
| 302 |
+
st.markdown("**π Shift Production Trends**")
|
| 303 |
shift_trend_chart = create_shift_trend_chart(df, shift_time_view)
|
| 304 |
st.plotly_chart(shift_trend_chart, use_container_width=True)
|
| 305 |
|
| 306 |
# Shift comparison charts
|
| 307 |
+
st.markdown("**π Shift Comparison Analysis**")
|
| 308 |
shift_col1, shift_col2 = st.columns(2)
|
| 309 |
|
| 310 |
with shift_col1:
|