dperales commited on
Commit
bd9c9a1
1 Parent(s): 72bc4dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -100,6 +100,9 @@ def main():
100
  num_rows = int(insurance_claims.shape[0]*int(num_lines)/100)
101
  insurance_claims_reduced = insurance_claims.head(num_rows)
102
  st.write("Rows to be processed: " + str(num_rows))
 
 
 
103
 
104
  st.header("Inference Description")
105
  insurance_claims_reduced.describe().T
@@ -120,9 +123,6 @@ def main():
120
  # Display the heatmap in Streamlit
121
  st.pyplot(fig)
122
 
123
- all_columns = insurance_claims_reduced.columns.tolist()
124
- selected_columns = st.multiselect("Choose columns", all_columns, default=all_columns)
125
-
126
  if st.button("Prediction"):
127
  insurance_claims_reduced = insurance_claims_reduced[selected_columns].copy()
128
 
 
100
  num_rows = int(insurance_claims.shape[0]*int(num_lines)/100)
101
  insurance_claims_reduced = insurance_claims.head(num_rows)
102
  st.write("Rows to be processed: " + str(num_rows))
103
+
104
+ all_columns = insurance_claims_reduced.columns.tolist()
105
+ selected_columns = st.multiselect("Choose columns", all_columns, default=all_columns)
106
 
107
  st.header("Inference Description")
108
  insurance_claims_reduced.describe().T
 
123
  # Display the heatmap in Streamlit
124
  st.pyplot(fig)
125
 
 
 
 
126
  if st.button("Prediction"):
127
  insurance_claims_reduced = insurance_claims_reduced[selected_columns].copy()
128