Remove NCI/TABA branding from header; fix KeyError on stale agent session state
Browse files
app.py
CHANGED
|
@@ -299,7 +299,6 @@ with st.sidebar:
|
|
| 299 |
<div style='text-align:center;margin-bottom:16px;'>
|
| 300 |
<div style='font-size:2.2rem;'>馃洅</div>
|
| 301 |
<div style='font-size:1.1rem;font-weight:800;color:#0f172a;'>EcoCart AI</div>
|
| 302 |
-
<div style='font-size:.76rem;color:#64748b;'>NCI MSCAI 路 TABA 2026</div>
|
| 303 |
</div>
|
| 304 |
""", unsafe_allow_html=True)
|
| 305 |
st.divider()
|
|
@@ -352,10 +351,6 @@ st.markdown("""
|
|
| 352 |
<h1>EcoCart AI System</h1>
|
| 353 |
<p>Route optimisation 路 Customer segmentation 路 Demand forecasting</p>
|
| 354 |
</div>
|
| 355 |
-
<div style='text-align:right;'>
|
| 356 |
-
<span class='tag'>NCI MSCAI</span><span class='tag'>TABA 2026</span>
|
| 357 |
-
<div style='font-size:.72rem;color:#64748b;margin-top:6px;'>Fundamentals of Artificial Intelligence</div>
|
| 358 |
-
</div>
|
| 359 |
</div>
|
| 360 |
</div>
|
| 361 |
""", unsafe_allow_html=True)
|
|
@@ -470,9 +465,12 @@ with T1:
|
|
| 470 |
st.session_state["playing"] = False
|
| 471 |
st.rerun()
|
| 472 |
|
| 473 |
-
agent
|
| 474 |
-
|
| 475 |
-
|
|
|
|
|
|
|
|
|
|
| 476 |
mx = len(route) - 1
|
| 477 |
|
| 478 |
if st.session_state.get("_ag_prev") != agent:
|
|
|
|
| 299 |
<div style='text-align:center;margin-bottom:16px;'>
|
| 300 |
<div style='font-size:2.2rem;'>馃洅</div>
|
| 301 |
<div style='font-size:1.1rem;font-weight:800;color:#0f172a;'>EcoCart AI</div>
|
|
|
|
| 302 |
</div>
|
| 303 |
""", unsafe_allow_html=True)
|
| 304 |
st.divider()
|
|
|
|
| 351 |
<h1>EcoCart AI System</h1>
|
| 352 |
<p>Route optimisation 路 Customer segmentation 路 Demand forecasting</p>
|
| 353 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 354 |
</div>
|
| 355 |
</div>
|
| 356 |
""", unsafe_allow_html=True)
|
|
|
|
| 465 |
st.session_state["playing"] = False
|
| 466 |
st.rerun()
|
| 467 |
|
| 468 |
+
agent = st.session_state.get("_ag", "Reactive Agent")
|
| 469 |
+
if agent not in RCOLS:
|
| 470 |
+
agent = "Reactive Agent"
|
| 471 |
+
st.session_state["_ag"] = agent
|
| 472 |
+
ac = RCOLS[agent]
|
| 473 |
+
route = ROUTES[agent]
|
| 474 |
mx = len(route) - 1
|
| 475 |
|
| 476 |
if st.session_state.get("_ag_prev") != agent:
|