Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,27 +32,6 @@ selected_camera_status = st.sidebar.selectbox(
|
|
32 |
"Camera Status", ["All", "Online", "Offline"]
|
33 |
)
|
34 |
|
35 |
-
# Apply filters to create filtered_df
|
36 |
-
filtered_df = df[
|
37 |
-
(df["Alert_Level__c"].isin(selected_alert_levels)) &
|
38 |
-
(df["Site__c"].isin(selected_sites))
|
39 |
-
]
|
40 |
-
|
41 |
-
if selected_camera_status != "All":
|
42 |
-
filtered_df = filtered_df[filtered_df["Camera_Status__c"] == selected_camera_status]
|
43 |
-
|
44 |
-
# Now use filtered_df everywhere
|
45 |
-
|
46 |
-
# Show system summary
|
47 |
-
display_dashboard(filtered_df)
|
48 |
-
|
49 |
-
# Show pole table
|
50 |
-
st.subheader("📋 Pole Table")
|
51 |
-
st.dataframe(filtered_df)
|
52 |
-
|
53 |
-
# Show charts
|
54 |
-
display_charts(filtered_df)
|
55 |
-
|
56 |
|
57 |
# 1. System Summary (Show first)
|
58 |
display_dashboard(df)
|
|
|
32 |
"Camera Status", ["All", "Online", "Offline"]
|
33 |
)
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
# 1. System Summary (Show first)
|
37 |
display_dashboard(df)
|