Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -248,42 +248,45 @@ with st.container():
|
|
| 248 |
|
| 249 |
# ================= LOGO (Perbaikan: Base64 Embed - Selalu Muncul) =================
|
| 250 |
# ================= LOGO (Pakai File Lokal - Selalu Muncul di Pojok Kanan Atas) =================
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
)
|
|
|
|
|
|
|
|
|
|
| 287 |
|
| 288 |
# ================= SIDEBAR FILTERS =================
|
| 289 |
with st.sidebar:
|
|
|
|
| 248 |
|
| 249 |
# ================= LOGO (Perbaikan: Base64 Embed - Selalu Muncul) =================
|
| 250 |
# ================= LOGO (Pakai File Lokal - Selalu Muncul di Pojok Kanan Atas) =================
|
| 251 |
+
import os
|
| 252 |
+
import streamlit as st
|
| 253 |
+
|
| 254 |
+
# ================= PATH AMAN (WAJIB) =================
|
| 255 |
+
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 256 |
+
|
| 257 |
+
LOGO_MICHELIN = os.path.join(BASE_DIR, "logo.png")
|
| 258 |
+
LOGO_BTECH = os.path.join(BASE_DIR, "btech.png")
|
| 259 |
+
|
| 260 |
+
# ================= HEADER =================
|
| 261 |
+
with st.container():
|
| 262 |
+
col1, col2, col3 = st.columns([1.5, 6, 1.5])
|
| 263 |
+
|
| 264 |
+
# LEFT — Michelin Logo
|
| 265 |
+
with col1:
|
| 266 |
+
if os.path.exists(LOGO_MICHELIN):
|
| 267 |
+
st.image(LOGO_MICHELIN, width=140)
|
| 268 |
+
else:
|
| 269 |
+
st.markdown("**Michelin**")
|
| 270 |
+
|
| 271 |
+
# CENTER — Title
|
| 272 |
+
with col2:
|
| 273 |
+
st.markdown("""
|
| 274 |
+
<div style="text-align:center;">
|
| 275 |
+
<h1 style="margin:0; color:#154D9C; font-weight:800;">
|
| 276 |
+
Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments
|
| 277 |
+
</h1>
|
| 278 |
+
<p style="font-size:12px; color:#7d7d7d; margin-top:6px;">
|
| 279 |
+
Daily trend insights derived from 13–16 December 2023 data
|
| 280 |
+
</p>
|
| 281 |
+
</div>
|
| 282 |
+
""", unsafe_allow_html=True)
|
| 283 |
+
|
| 284 |
+
# RIGHT — BTech Logo
|
| 285 |
+
with col3:
|
| 286 |
+
if os.path.exists(LOGO_BTECH):
|
| 287 |
+
st.image(LOGO_BTECH, width=140)
|
| 288 |
+
else:
|
| 289 |
+
st.markdown("**BTech**")
|
| 290 |
|
| 291 |
# ================= SIDEBAR FILTERS =================
|
| 292 |
with st.sidebar:
|