Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -108,20 +108,22 @@ PitchSatisfactionScore_vals = [1, 2, 3, 4, 5]
|
|
| 108 |
# ---------------------------------------------------------
|
| 109 |
with st.expander("👤 1. Personal and Professional Information", expanded=True):
|
| 110 |
|
| 111 |
-
col1, col2 = st.columns(
|
| 112 |
|
| 113 |
with col1:
|
| 114 |
Age = st.number_input("Age", 18, 90, 30)
|
| 115 |
Gender = st.selectbox("Gender", Gender_vals)
|
| 116 |
MaritalStatus = st.selectbox("Marital Status", MaritalStatus_vals)
|
| 117 |
-
MonthlyIncome = st.number_input("Monthly Income (₹)", 0, 500000, 50000)
|
| 118 |
|
| 119 |
with col2:
|
| 120 |
CityTier_label = st.selectbox("City Tier", CityType)
|
| 121 |
OwnCar_display = st.radio("Own Car?", ["Yes", "No"])
|
| 122 |
Passport_display = st.radio("Has Passport?", ["Yes", "No"])
|
|
|
|
|
|
|
| 123 |
Occupation = st.selectbox("Occupation", Occupation_vals)
|
| 124 |
Designation = st.selectbox("Designation", Designation_vals)
|
|
|
|
| 125 |
|
| 126 |
CityTier = {"Tier 1": 1, "Tier 2": 2, "Tier 3": 3}[CityTier_label]
|
| 127 |
OwnCar = 1 if OwnCar_display == "Yes" else 0
|
|
@@ -133,16 +135,17 @@ Passport = 1 if Passport_display == "Yes" else 0
|
|
| 133 |
# ---------------------------------------------------------
|
| 134 |
with st.expander("✈️ 2. Travel Information", expanded=False):
|
| 135 |
|
| 136 |
-
col1, col2 = st.columns(
|
| 137 |
|
| 138 |
with col1:
|
| 139 |
NumberOfTrips = st.number_input("Average Trips per Year", 0, 100, 2)
|
| 140 |
-
NumberOfChildrenVisiting = st.number_input("Children (Below 5 yrs)", 0, 10, 0)
|
| 141 |
|
| 142 |
with col2:
|
| 143 |
NumberOfPersonVisiting = st.number_input("Total Persons Visiting", 1, 10, 2)
|
| 144 |
-
PreferredPropertyStar = st.selectbox("Preferred Property Star", [3, 4, 5])
|
| 145 |
|
|
|
|
|
|
|
|
|
|
| 146 |
|
| 147 |
|
| 148 |
# ---------------------------------------------------------
|
|
@@ -150,7 +153,7 @@ with st.expander("✈️ 2. Travel Information", expanded=False):
|
|
| 150 |
# ---------------------------------------------------------
|
| 151 |
with st.expander("🗣️ 3. Interaction Details", expanded=False):
|
| 152 |
|
| 153 |
-
col1, col2 = st.columns(
|
| 154 |
|
| 155 |
with col1:
|
| 156 |
TypeofContact = st.selectbox("Type of Contact", TypeofContact_vals)
|
|
@@ -159,6 +162,8 @@ with st.expander("🗣️ 3. Interaction Details", expanded=False):
|
|
| 159 |
with col2:
|
| 160 |
DurationOfPitch = st.number_input("Pitch Duration (minutes)", 0, 200, 10)
|
| 161 |
NumberOfFollowups = st.number_input("Number of Follow-ups", 0, 50, 1)
|
|
|
|
|
|
|
| 162 |
PitchSatisfactionScore = st.selectbox("Pitch Satisfaction Score", [1, 2, 3, 4, 5])
|
| 163 |
|
| 164 |
|
|
|
|
| 108 |
# ---------------------------------------------------------
|
| 109 |
with st.expander("👤 1. Personal and Professional Information", expanded=True):
|
| 110 |
|
| 111 |
+
col1, col2, col3 = st.columns(3)
|
| 112 |
|
| 113 |
with col1:
|
| 114 |
Age = st.number_input("Age", 18, 90, 30)
|
| 115 |
Gender = st.selectbox("Gender", Gender_vals)
|
| 116 |
MaritalStatus = st.selectbox("Marital Status", MaritalStatus_vals)
|
|
|
|
| 117 |
|
| 118 |
with col2:
|
| 119 |
CityTier_label = st.selectbox("City Tier", CityType)
|
| 120 |
OwnCar_display = st.radio("Own Car?", ["Yes", "No"])
|
| 121 |
Passport_display = st.radio("Has Passport?", ["Yes", "No"])
|
| 122 |
+
|
| 123 |
+
with col3:
|
| 124 |
Occupation = st.selectbox("Occupation", Occupation_vals)
|
| 125 |
Designation = st.selectbox("Designation", Designation_vals)
|
| 126 |
+
MonthlyIncome = st.number_input("Monthly Income (₹)", 0, 500000, 50000)
|
| 127 |
|
| 128 |
CityTier = {"Tier 1": 1, "Tier 2": 2, "Tier 3": 3}[CityTier_label]
|
| 129 |
OwnCar = 1 if OwnCar_display == "Yes" else 0
|
|
|
|
| 135 |
# ---------------------------------------------------------
|
| 136 |
with st.expander("✈️ 2. Travel Information", expanded=False):
|
| 137 |
|
| 138 |
+
col1, col2, col3 = st.columns(3)
|
| 139 |
|
| 140 |
with col1:
|
| 141 |
NumberOfTrips = st.number_input("Average Trips per Year", 0, 100, 2)
|
|
|
|
| 142 |
|
| 143 |
with col2:
|
| 144 |
NumberOfPersonVisiting = st.number_input("Total Persons Visiting", 1, 10, 2)
|
|
|
|
| 145 |
|
| 146 |
+
with col3:
|
| 147 |
+
NumberOfChildrenVisiting = st.number_input("Children (Below 5 yrs)", 0, 10, 0)
|
| 148 |
+
PreferredPropertyStar = st.selectbox("Preferred Property Star", [3, 4, 5])
|
| 149 |
|
| 150 |
|
| 151 |
# ---------------------------------------------------------
|
|
|
|
| 153 |
# ---------------------------------------------------------
|
| 154 |
with st.expander("🗣️ 3. Interaction Details", expanded=False):
|
| 155 |
|
| 156 |
+
col1, col2, col3 = st.columns(3)
|
| 157 |
|
| 158 |
with col1:
|
| 159 |
TypeofContact = st.selectbox("Type of Contact", TypeofContact_vals)
|
|
|
|
| 162 |
with col2:
|
| 163 |
DurationOfPitch = st.number_input("Pitch Duration (minutes)", 0, 200, 10)
|
| 164 |
NumberOfFollowups = st.number_input("Number of Follow-ups", 0, 50, 1)
|
| 165 |
+
|
| 166 |
+
with col3:
|
| 167 |
PitchSatisfactionScore = st.selectbox("Pitch Satisfaction Score", [1, 2, 3, 4, 5])
|
| 168 |
|
| 169 |
|