Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,9 @@ with st.spinner(f"Simulating poles at {selected_site}..."):
|
|
84 |
df = pd.DataFrame(poles_data)
|
85 |
site_df = df[df['Site'] == selected_site]
|
86 |
|
87 |
-
|
|
|
|
|
88 |
col1, col2, col3 = st.columns(3)
|
89 |
col1.metric("Total Poles", site_df.shape[0])
|
90 |
col2.metric("Red Alerts", site_df[site_df['Alert Level'] == 'Red'].shape[0])
|
|
|
84 |
df = pd.DataFrame(poles_data)
|
85 |
site_df = df[df['Site'] == selected_site]
|
86 |
|
87 |
+
with st.spinner(f"Simulating poles at {selected_site}..."):
|
88 |
+
import time
|
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['Alert Level'] == 'Red'].shape[0])
|