Spaces:
Runtime error

Tdanyim commited on
Commit
e2bab8d
·
verified ·
1 Parent(s): 4dd9aba

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +11 -11
src/streamlit_app.py CHANGED
@@ -106,20 +106,20 @@ if ts_df.empty:
106
  st.stop()
107
 
108
  # ---------------------------------------------------
109
- # Sidebar controls
110
  # ---------------------------------------------------
111
- st.sidebar.header("EDA Controls")
 
 
 
 
 
112
 
113
- show_dataframe = st.sidebar.checkbox("Show dataframe", value=False)
114
-
115
- selected_name = st.sidebar.selectbox(
116
- "Choose sample file",
117
- ts_df["sample_name"].tolist(),
118
- index=0
119
- )
120
 
121
- show_stats = st.sidebar.checkbox("Show array statistics", value=False)
122
- show_visualisation = st.sidebar.checkbox("Display visualisation", value=False)
123
 
124
  # ---------------------------------------------------
125
  # Load selected sample once
 
106
  st.stop()
107
 
108
  # ---------------------------------------------------
109
+ # Sidebar controls (collapsible)
110
  # ---------------------------------------------------
111
+ with st.sidebar.expander("EDA Controls", expanded=False):
112
+ selected_name = st.selectbox(
113
+ "Choose sample file",
114
+ ts_df["sample_name"].tolist(),
115
+ index=0
116
+ )
117
 
118
+ show_stats = st.checkbox("Show array statistics", value=False)
119
+ show_visualisation = st.checkbox("Display visualisation", value=False)
 
 
 
 
 
120
 
121
+ # Optional: keep dataframe outside expander if you still want it
122
+ show_dataframe = st.sidebar.checkbox("Show dataframe", value=False)
123
 
124
  # ---------------------------------------------------
125
  # Load selected sample once