Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,42 +197,42 @@ def load_data():
|
|
| 197 |
|
| 198 |
df = load_data()
|
| 199 |
|
| 200 |
-
# ================= HEADER β
|
| 201 |
with st.container():
|
| 202 |
-
col1, col2, col3 = st.columns([1,
|
| 203 |
|
| 204 |
-
# LEFT β
|
| 205 |
with col1:
|
| 206 |
-
if os.path.
|
| 207 |
-
|
| 208 |
-
st.image("logo.png", width=100)
|
| 209 |
-
except Exception as e:
|
| 210 |
-
st.markdown('<div style="color:#003A8F; font-weight:700; font-size:16px;">Michelin</div>', unsafe_allow_html=True)
|
| 211 |
else:
|
| 212 |
-
st.markdown(
|
|
|
|
|
|
|
|
|
|
| 213 |
|
| 214 |
# CENTER β Title
|
| 215 |
with col2:
|
| 216 |
st.markdown("""
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
""", unsafe_allow_html=True)
|
| 226 |
|
| 227 |
-
# RIGHT β
|
| 228 |
with col3:
|
| 229 |
-
if os.path.
|
| 230 |
-
|
| 231 |
-
st.image("btech.png", width=100)
|
| 232 |
-
except Exception as e:
|
| 233 |
-
st.markdown('<div style="color:#7d7d7d; font-weight:600; font-size:16px;">BTech</div>', unsafe_allow_html=True)
|
| 234 |
else:
|
| 235 |
-
st.markdown(
|
|
|
|
|
|
|
|
|
|
| 236 |
|
| 237 |
# # ================= HEADER =================
|
| 238 |
# st.markdown("""
|
|
|
|
| 197 |
|
| 198 |
df = load_data()
|
| 199 |
|
| 200 |
+
# ================= HEADER β FIX FINAL (LOGO PASTI MUNCUL) =================
|
| 201 |
with st.container():
|
| 202 |
+
col1, col2, col3 = st.columns([1.2, 6, 1.2])
|
| 203 |
|
| 204 |
+
# LEFT β Michelin Logo
|
| 205 |
with col1:
|
| 206 |
+
if os.path.isfile("logo.png"):
|
| 207 |
+
st.image("logo.png", use_container_width=True)
|
|
|
|
|
|
|
|
|
|
| 208 |
else:
|
| 209 |
+
st.markdown(
|
| 210 |
+
"<h4 style='color:#003A8F; text-align:center;'>Michelin</h4>",
|
| 211 |
+
unsafe_allow_html=True
|
| 212 |
+
)
|
| 213 |
|
| 214 |
# CENTER β Title
|
| 215 |
with col2:
|
| 216 |
st.markdown("""
|
| 217 |
+
<div style="text-align:center;">
|
| 218 |
+
<h1 style="margin:0; color:#154D9C; font-weight:800;">
|
| 219 |
+
Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments
|
| 220 |
+
</h1>
|
| 221 |
+
<p style="color:#7d7d7d; font-size:13px; margin-top:6px;">
|
| 222 |
+
Daily trend insights derived from 13β16 December 2023 data
|
| 223 |
+
</p>
|
| 224 |
+
</div>
|
| 225 |
""", unsafe_allow_html=True)
|
| 226 |
|
| 227 |
+
# RIGHT β BTech Logo
|
| 228 |
with col3:
|
| 229 |
+
if os.path.isfile("btech.png"):
|
| 230 |
+
st.image("btech.png", use_container_width=True)
|
|
|
|
|
|
|
|
|
|
| 231 |
else:
|
| 232 |
+
st.markdown(
|
| 233 |
+
"<h4 style='color:#7d7d7d; text-align:center;'>BTech</h4>",
|
| 234 |
+
unsafe_allow_html=True
|
| 235 |
+
)
|
| 236 |
|
| 237 |
# # ================= HEADER =================
|
| 238 |
# st.markdown("""
|