CosmickVisions commited on
Commit
4fc9b13
·
verified ·
1 Parent(s): f0536a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -149,7 +149,6 @@ st.markdown("""
149
  transform: translateY(-2px);
150
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
151
  }
152
-
153
  /* Card styles */
154
  .card {
155
  background: var(--white);
@@ -1123,6 +1122,16 @@ def model_training_page():
1123
  st.session_state.selected_columns = df.columns.tolist()
1124
  else:
1125
  # For clustering, all columns are features
 
 
 
 
 
 
 
 
 
 
1126
 
1127
  def visualization_page():
1128
  """Visualization and evaluation page for trained models"""
 
149
  transform: translateY(-2px);
150
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
151
  }
 
152
  /* Card styles */
153
  .card {
154
  background: var(--white);
 
1122
  st.session_state.selected_columns = df.columns.tolist()
1123
  else:
1124
  # For clustering, all columns are features
1125
+ available_features = df.columns.tolist()
1126
+ selected_features = st.multiselect(
1127
+ "Select features for clustering",
1128
+ options=available_features,
1129
+ default=available_features[:min(5, len(available_features))]
1130
+ )
1131
+ st.session_state.selected_columns = selected_features
1132
+
1133
+ # Rest of the model_training_page function would go here...
1134
+ st.markdown('</div>', unsafe_allow_html=True)
1135
 
1136
  def visualization_page():
1137
  """Visualization and evaluation page for trained models"""