mukhlishr commited on
Commit
f6df849
1 Parent(s): e178f84

Update prediction.py

Browse files

update feedback and result

Files changed (1) hide show
  1. prediction.py +3 -3
prediction.py CHANGED
@@ -42,7 +42,7 @@ def run():
42
  offer_application_preference = st.selectbox('app preference', ('Yes','No'), index=1)
43
  past_complaint = st.selectbox('past complaint', ('Yes','No'), index=1)
44
  complaint_status = st.selectbox('Complain status', ('No Information Available','Not Applicable','Solved','Solved in Follow-up','Unsolved'), index=1)
45
- feedback = st.selectbox('Complain status', ('User Friendly Website','Too many ads','Reasonable Price','Quality Customer Care','Products always in Stock','Poor Website','Poor Product Quality','Poor Customer Service'), index=1)
46
  st.markdown('---')
47
 
48
  submitted = st.form_submit_button('Predict')
@@ -86,9 +86,9 @@ def run():
86
  y_pred_inf = model_ann.predict(data_inf_transform)
87
  y_pred_inf = np.where(y_pred_inf >= 0.5, 1, 0)
88
  if y_pred_inf.any() == 1:
89
- st.write('## The Customer probably will CHURN')
90
  else:
91
- st.write('## The Customer probably will NOT Churn')
92
 
93
 
94
  if __name__ == '__main__':
 
42
  offer_application_preference = st.selectbox('app preference', ('Yes','No'), index=1)
43
  past_complaint = st.selectbox('past complaint', ('Yes','No'), index=1)
44
  complaint_status = st.selectbox('Complain status', ('No Information Available','Not Applicable','Solved','Solved in Follow-up','Unsolved'), index=1)
45
+ feedback = st.selectbox('Feedback customer', ('User Friendly Website','Too many ads','Reasonable Price','Quality Customer Care','Products always in Stock','Poor Website','Poor Product Quality','Poor Customer Service'), index=1)
46
  st.markdown('---')
47
 
48
  submitted = st.form_submit_button('Predict')
 
86
  y_pred_inf = model_ann.predict(data_inf_transform)
87
  y_pred_inf = np.where(y_pred_inf >= 0.5, 1, 0)
88
  if y_pred_inf.any() == 1:
89
+ st.write('## The Customer will CHURN')
90
  else:
91
+ st.write('## The Customer will NOT Churn')
92
 
93
 
94
  if __name__ == '__main__':