Sanjayraju30 commited on
Commit
822c2c6
·
verified ·
1 Parent(s): 2fc28af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- # Summary Metrics
 
 
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])