saifhmb commited on
Commit
0f7209b
·
unverified ·
1 Parent(s): d3fd480

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -69,15 +69,19 @@ def prediction(Age, EstimatedSalary):
69
  # this is the main function in which we define our webpage
70
  def main():
71
  # giving the webpage a title
72
- st.title("Customer Vehicle Purchase Prediction")
73
 
74
  Age = st.text_input("Age", "Type Here")
75
  EstimatedSalary = st.text_input("EstimatedSalary", "Type Here")
76
  result = ""
77
  if st.button("Predict"):
78
  result = prediction(Age, EstimatedSalary)
79
-
80
- st.success('The output is {}'.format(result))
 
 
 
 
81
 
82
  if __name__=='__main__':
83
  main()
 
69
  # this is the main function in which we define our webpage
70
  def main():
71
  # giving the webpage a title
72
+ st.title("Customer Purchase Prediction")
73
 
74
  Age = st.text_input("Age", "Type Here")
75
  EstimatedSalary = st.text_input("EstimatedSalary", "Type Here")
76
  result = ""
77
  if st.button("Predict"):
78
  result = prediction(Age, EstimatedSalary)
79
+ if result == 0:
80
+ st.success('The output is {}'.format(result) "and thus the customer is NOT likely to complete a purchase")
81
+ if result == 1:
82
+ st.success('The output is {}'.format(result) "and thus the customer is likely to complete a purchase")
83
+
84
+
85
 
86
  if __name__=='__main__':
87
  main()