Truong-Phuc Nguyen commited on
Commit
8ba1c85
1 Parent(s): 172ae27

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +2 -8
Home.py CHANGED
@@ -171,7 +171,6 @@ if predict:
171
  y_6 = clf_6.predict(X_6)
172
  st.success(y_6)
173
  y_pred_6 = convert_prediction(y_6)
174
- # st.success(f'We recommend you choosing **{convert_prediction(y_6)}** size!')
175
  styled_text = f"<h3 style='text-align: center;'>We recommend you choosing <span style='color: red; font-weight: bold;'>{y_pred_6}</span> size!</h3>"
176
  st.markdown(styled_text, unsafe_allow_html=True)
177
 
@@ -180,16 +179,11 @@ if predict:
180
  X_8 = scaler_8.transform(X_8)
181
  y_8 = clf_8.predict(X_8)
182
  st.success(y_8)
183
- # st.success(f'We recommend you choosing **{convert_prediction(np.argmax(y_8, axis=1))}** size!')
184
- y_pred_8 = convert_prediction(y_8)
185
- # st.success(f'We recommend you choosing **{convert_prediction(y_6)}** size!')
186
  styled_text = f"<h3 style='text-align: center;'>We recommend you choosing <span style='color: red; font-weight: bold;'>{y_pred_8}</span> size!</h3>"
187
  else:
188
  X_21 = np.array([[h, w, bmi, vtn, vn, vcn, cn, cnnp, cnnt, cntp, cntt, ccnp, ccnt, snt, sndp, sndt, xup, xut, cl, ttp, ttt]])
189
  X_21 = scaler_21.transform(X_21)
190
  y_21 = clf_21.predict(X_21)
191
- st.success(y_21)
192
- # st.success(f'We recommend you choosing **{convert_prediction(np.argmax(y_21, axis=1))}** size!')
193
- y_pred_21 = convert_prediction(y_21)
194
- # st.success(f'We recommend you choosing **{convert_prediction(y_6)}** size!')
195
  styled_text = f"<h3 style='text-align: center;'>We recommend you choosing <span style='color: red; font-weight: bold;'>{y_pred_21}</span> size!</h3>"
 
171
  y_6 = clf_6.predict(X_6)
172
  st.success(y_6)
173
  y_pred_6 = convert_prediction(y_6)
 
174
  styled_text = f"<h3 style='text-align: center;'>We recommend you choosing <span style='color: red; font-weight: bold;'>{y_pred_6}</span> size!</h3>"
175
  st.markdown(styled_text, unsafe_allow_html=True)
176
 
 
179
  X_8 = scaler_8.transform(X_8)
180
  y_8 = clf_8.predict(X_8)
181
  st.success(y_8)
182
+ y_pred_8 = convert_prediction(np.argmax(y_8, axis=1))
 
 
183
  styled_text = f"<h3 style='text-align: center;'>We recommend you choosing <span style='color: red; font-weight: bold;'>{y_pred_8}</span> size!</h3>"
184
  else:
185
  X_21 = np.array([[h, w, bmi, vtn, vn, vcn, cn, cnnp, cnnt, cntp, cntt, ccnp, ccnt, snt, sndp, sndt, xup, xut, cl, ttp, ttt]])
186
  X_21 = scaler_21.transform(X_21)
187
  y_21 = clf_21.predict(X_21)
188
+ y_pred_21 = convert_prediction(np.argmax(y_21, axis=1))
 
 
 
189
  styled_text = f"<h3 style='text-align: center;'>We recommend you choosing <span style='color: red; font-weight: bold;'>{y_pred_21}</span> size!</h3>"