sasipriyank commited on
Commit
f6e0217
·
verified ·
1 Parent(s): 2335139

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. streamlit_app.py +0 -8
streamlit_app.py CHANGED
@@ -18,18 +18,14 @@ st.write("Kindly enter the customer details to check whether they are likely to
18
 
19
  NumberOfPersonVisiting = st.number_input("Number Of Person Visiting",min_value=1, value=1)
20
  NumberOfChildrenVisiting= st.number_input("Number Of Children Visiting",min_value=0, value=0)
21
- #DurationOfPitch = st.number_input("Duration Of Pitch",min_value=1, value=1)
22
  Occupation = st.selectbox("Occupation", ["Salaried", "Freelancer", "Small Business","Large Business"])
23
  TypeofContact = st.selectbox("Type of Contact", ["Company Invited", "Self Inquiry"])
24
  Gender = st.selectbox("Gender", ["Male", "Female"])
25
  MaritalStatus = st.selectbox("Marital Status", ["Married","Unmarried", "Single","Divorced"])
26
  Designation = st.selectbox("Designation", ["Executive", "Manager", "Senior Manager", "VP","AVP"])
27
- #ProductPitched= st.selectbox("Product pitched", ["Basic", "Standard","Deluxe"])
28
  Age = st.number_input("Age", min_value=18, max_value=100, value=30)
29
  CityTier = st.selectbox("CityTier", ["1", "2","3"])
30
  PreferredPropertyStar = st.selectbox("PreferredPropertyStar", ["1", "2","3","4","5"])
31
- #PitchSatisfactionScore= st.selectbox("PitchSatisfactionScore",["1", "2","3","4","5"])
32
- #NumberOfFollowups = st.number_input("Number Of Followups", min_value=0, value=1)
33
  NumberOfTrips = st.number_input("Number Of Trips", min_value=0, value=1)
34
  Passport = st.selectbox("have passport?", ["Yes", "No"])
35
  OwnCar = st.selectbox("Is own car?", ["Yes", "No"])
@@ -41,15 +37,11 @@ input_data = pd.DataFrame([{
41
  'Occupation': Occupation,
42
  'Age': Age,
43
  'NumberOfChildrenVisiting': NumberOfChildrenVisiting,
44
- #'DurationOfPitch': DurationOfPitch,
45
  'TypeofContact': TypeofContact,
46
  'Gender': Gender,
47
  'MaritalStatus': MaritalStatus,
48
  'Designation': Designation,
49
- #'ProductPitched': ProductPitched,
50
- #'PitchSatisfactionScore': PitchSatisfactionScore,
51
  'CityTier': CityTier,
52
- #'NumberOfFollowups' : NumberOfFollowups,
53
  'NumberOfTrips' : NumberOfTrips,
54
  'PreferredPropertyStar': PreferredPropertyStar,
55
  'OwnCar': 1 if OwnCar == "Yes" else 0,
 
18
 
19
  NumberOfPersonVisiting = st.number_input("Number Of Person Visiting",min_value=1, value=1)
20
  NumberOfChildrenVisiting= st.number_input("Number Of Children Visiting",min_value=0, value=0)
 
21
  Occupation = st.selectbox("Occupation", ["Salaried", "Freelancer", "Small Business","Large Business"])
22
  TypeofContact = st.selectbox("Type of Contact", ["Company Invited", "Self Inquiry"])
23
  Gender = st.selectbox("Gender", ["Male", "Female"])
24
  MaritalStatus = st.selectbox("Marital Status", ["Married","Unmarried", "Single","Divorced"])
25
  Designation = st.selectbox("Designation", ["Executive", "Manager", "Senior Manager", "VP","AVP"])
 
26
  Age = st.number_input("Age", min_value=18, max_value=100, value=30)
27
  CityTier = st.selectbox("CityTier", ["1", "2","3"])
28
  PreferredPropertyStar = st.selectbox("PreferredPropertyStar", ["1", "2","3","4","5"])
 
 
29
  NumberOfTrips = st.number_input("Number Of Trips", min_value=0, value=1)
30
  Passport = st.selectbox("have passport?", ["Yes", "No"])
31
  OwnCar = st.selectbox("Is own car?", ["Yes", "No"])
 
37
  'Occupation': Occupation,
38
  'Age': Age,
39
  'NumberOfChildrenVisiting': NumberOfChildrenVisiting,
 
40
  'TypeofContact': TypeofContact,
41
  'Gender': Gender,
42
  'MaritalStatus': MaritalStatus,
43
  'Designation': Designation,
 
 
44
  'CityTier': CityTier,
 
45
  'NumberOfTrips' : NumberOfTrips,
46
  'PreferredPropertyStar': PreferredPropertyStar,
47
  'OwnCar': 1 if OwnCar == "Yes" else 0,