wanwanlin0521 commited on
Commit
2dcdba3
Β·
verified Β·
1 Parent(s): 7e79ca0

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -2
src/streamlit_app.py CHANGED
@@ -42,7 +42,7 @@ def load_data():
42
  return pd.read_csv(DATA_PATH)
43
 
44
  # ── 0. Page configuration ──
45
- if page == "Home":
46
  st.set_page_config(
47
  page_title="Analyze Crime Distributions",
48
  page_icon="πŸ“Š",
@@ -105,7 +105,6 @@ if page == "Home":
105
  st.write(f"Total records: {df.shape[0]} | Total columns: {df.shape[1]}")
106
  st.dataframe(df.head())
107
 
108
- elif page == "Pie Chart":
109
  # Pie Chart 1: Top 10 Crime Types
110
  st.markdown("<div class='title'><h1> Top 10 Crime Type </h1></div>", unsafe_allow_html=True)
111
 
 
42
  return pd.read_csv(DATA_PATH)
43
 
44
  # ── 0. Page configuration ──
45
+ if page == "Pie Chart":
46
  st.set_page_config(
47
  page_title="Analyze Crime Distributions",
48
  page_icon="πŸ“Š",
 
105
  st.write(f"Total records: {df.shape[0]} | Total columns: {df.shape[1]}")
106
  st.dataframe(df.head())
107
 
 
108
  # Pie Chart 1: Top 10 Crime Types
109
  st.markdown("<div class='title'><h1> Top 10 Crime Type </h1></div>", unsafe_allow_html=True)
110