Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ with st.spinner(f"Simulating poles at {selected_site}..."):
|
|
89 |
time.sleep(2)
|
90 |
col1, col2, col3 = st.columns(3)
|
91 |
col1.metric("Total Poles", site_df.shape[0])
|
92 |
-
col2.metric("Red Alerts", site_df[
|
93 |
col3.metric("Power Insufficiencies", site_df[site_df['Power Status'] == 'Insufficient'].shape[0])
|
94 |
|
95 |
# Table View
|
|
|
89 |
time.sleep(2)
|
90 |
col1, col2, col3 = st.columns(3)
|
91 |
col1.metric("Total Poles", site_df.shape[0])
|
92 |
+
col2.metric("Red Alerts", site_df[site_df['AlertLevel'] == 'Red'].shape[0])
|
93 |
col3.metric("Power Insufficiencies", site_df[site_df['Power Status'] == 'Insufficient'].shape[0])
|
94 |
|
95 |
# Table View
|