Fitjv commited on
Commit
149d299
·
verified ·
1 Parent(s): 484bc5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -6
app.py CHANGED
@@ -31,6 +31,12 @@ with st.form("customer_form"):
31
  NumberOfChildrenVisiting = st.number_input("Number of Children Visiting", 0, 5, 0)
32
  Occupation = st.selectbox("Occupation", ["Salaried", "Business", "Self-Employed", "Other"])
33
  MaritalStatus = st.selectbox("Marital Status", ["Single", "Married", "Divorced"])
 
 
 
 
 
 
34
 
35
  submitted = st.form_submit_button("Predict")
36
 
@@ -41,13 +47,19 @@ if submitted:
41
  "DurationOfPitch": DurationOfPitch,
42
  "NumberOfTrips": NumberOfTrips,
43
  "Gender": Gender,
44
- "NumberOfPersonVisiting" : NumberOfPersonVisiting,
45
- "NumberOfFollowups" : NumberOfFollowups,
46
- "PreferredPropertyStar" : PreferredPropertyStar,
47
- "PitchSatisfactionScore" : PitchSatisfactionScore,
48
- "NumberOfChildrenVisiting" : NumberOfChildrenVisiting,
49
  "Occupation": Occupation,
50
- "MaritalStatus": MaritalStatus
 
 
 
 
 
 
51
  }])
52
 
53
  prediction = model.predict(input_df)[0]
 
31
  NumberOfChildrenVisiting = st.number_input("Number of Children Visiting", 0, 5, 0)
32
  Occupation = st.selectbox("Occupation", ["Salaried", "Business", "Self-Employed", "Other"])
33
  MaritalStatus = st.selectbox("Marital Status", ["Single", "Married", "Divorced"])
34
+ TypeofContact = st.selectbox("Type of Contact", ["Self Enquiry", "Company Agent", "Others"])
35
+ ProductPitched = st.selectbox("Product Pitched", ["ProductA", "ProductB", "ProductC"])
36
+ Designation = st.selectbox("Designation", ["Manager", "Executive", "Other"])
37
+ Passport = st.selectbox("Passport", ["Yes", "No"])
38
+ OwnCar = st.selectbox("Own Car", ["Yes", "No"])
39
+ CityTier = st.selectbox("City Tier", [1, 2, 3])
40
 
41
  submitted = st.form_submit_button("Predict")
42
 
 
47
  "DurationOfPitch": DurationOfPitch,
48
  "NumberOfTrips": NumberOfTrips,
49
  "Gender": Gender,
50
+ "NumberOfPersonVisiting": NumberOfPersonVisiting,
51
+ "NumberOfFollowups": NumberOfFollowups,
52
+ "PreferredPropertyStar": PreferredPropertyStar,
53
+ "PitchSatisfactionScore": PitchSatisfactionScore,
54
+ "NumberOfChildrenVisiting": NumberOfChildrenVisiting,
55
  "Occupation": Occupation,
56
+ "MaritalStatus": MaritalStatus,
57
+ "TypeofContact": TypeofContact,
58
+ "ProductPitched": ProductPitched,
59
+ "Designation": Designation,
60
+ "Passport": Passport,
61
+ "OwnCar": OwnCar,
62
+ "CityTier": CityTier
63
  }])
64
 
65
  prediction = model.predict(input_df)[0]