DSatishchandra commited on
Commit
a578424
·
verified ·
1 Parent(s): 60e1fc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,13 +36,13 @@ st.write(f"Last Data Update: {last_update.strftime('%Y-%m-%d %H:%M:%S')} (Update
36
  st.sidebar.header("📂 Filter Data")
37
  alert_filter = st.sidebar.multiselect("Alert Level", ["Green", "Yellow", "Red"], default=["Green", "Yellow", "Red"])
38
  cam_filter = st.sidebar.selectbox("Camera Status", ["All", "Online", "Offline"], index=0)
39
- location_filter = st.sidebar.multiselect("Location", ["Hyderabad", "Gadwal", "Kurnool", "Bangalore"], default=["Hyderabad", "Gadwal", "Kurnool", "Bangalore"])
40
 
41
  filtered_df = apply_filters(df, alert_filter, cam_filter, location_filter)
42
 
43
  # Create tabs for each location
44
- tabs = st.tabs(["Hyderabad", "Gadwal", "Kurnool", "Bangalore"])
45
- locations = ["Hyderabad", "Gadwal", "Kurnool", "Bangalore"]
46
 
47
  for tab, location in zip(tabs, locations):
48
  with tab:
 
36
  st.sidebar.header("📂 Filter Data")
37
  alert_filter = st.sidebar.multiselect("Alert Level", ["Green", "Yellow", "Red"], default=["Green", "Yellow", "Red"])
38
  cam_filter = st.sidebar.selectbox("Camera Status", ["All", "Online", "Offline"], index=0)
39
+ location_filter = st.sidebar.multiselect("Location", ["Hyderabad", "Gadwal", "Kurnool", "Ballari"], default=["Hyderabad", "Gadwal", "Kurnool", "Ballari"])
40
 
41
  filtered_df = apply_filters(df, alert_filter, cam_filter, location_filter)
42
 
43
  # Create tabs for each location
44
+ tabs = st.tabs(["Hyderabad", "Gadwal", "Kurnool", "Ballari"])
45
+ locations = ["Hyderabad", "Gadwal", "Kurnool", "Ballari"]
46
 
47
  for tab, location in zip(tabs, locations):
48
  with tab: