Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -15,19 +15,27 @@ based on user details such as age, occupation, gender, marital status and income
|
|
| 15 |
Please enter the app details below to get the prediction.
|
| 16 |
""")
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
# active_users = st.number_input("Active Users", min_value=0, max_value=10000000, value=1000, step=100)
|
| 29 |
-
# short_ads = st.number_input("Short Ads per Hour", min_value=0, max_value=10, value=2)
|
| 30 |
-
# long_ads = st.number_input("Long Ads per Hour", min_value=0, max_value=10, value=1)
|
| 31 |
|
| 32 |
# # Assemble input into DataFrame
|
| 33 |
# input_data = pd.DataFrame([{
|
|
|
|
| 15 |
Please enter the app details below to get the prediction.
|
| 16 |
""")
|
| 17 |
|
| 18 |
+
# User input
|
| 19 |
+
customer_id = st.number_input("Customer ID", min_value=1)
|
| 20 |
+
age = st.number_input("Age", min_value=18, max_value=100, value=30)
|
| 21 |
+
type_of_contact = st.selectbox("Type of Contact", ["Self Enquiry", "Company Invited"])
|
| 22 |
+
city_tier = st.selectbox("City Tier", [1, 2, 3])
|
| 23 |
+
occupation = st.selectbox("Occupation", ["Salaried", "Free Lancer", "Small Business", "Large Business"])
|
| 24 |
+
gender = st.selectbox("Gender", ["Male", "Female"])
|
| 25 |
+
num_person_visiting = st.number_input("Number of Persons Visiting", min_value=1, max_value=20, value=2)
|
| 26 |
+
preferred_property_star = st.selectbox("Preferred Property Star", [3, 4, 5])
|
| 27 |
+
marital_status = st.selectbox("Marital Status", ["Single", "Divorced", "Married", "Unmarried"])
|
| 28 |
+
num_trips = st.number_input("Number of Trips", min_value=0, max_value=50, value=5)
|
| 29 |
+
passport = st.selectbox("Passport", ["Yes", "No"])
|
| 30 |
+
own_car = st.selectbox("Own Car", ["Yes", "No"])
|
| 31 |
+
num_children_visiting = st.number_input("Number of Children Visiting", min_value=0, max_value=10, value=0)
|
| 32 |
+
designation = st.selectbox("Designation", ["Executive", "Manager", "Senior Manager", "AVP", "VP"])
|
| 33 |
+
monthly_income = st.number_input("Monthly Income (USD)", min_value=1000, max_value=100000, value=5000)
|
| 34 |
|
| 35 |
+
pitch_satisfaction_score = st.selectbox("Pitch Satisfaction Score", [1, 2, 3, 4, 5])
|
| 36 |
+
product_pitched = st.selectbox("Product Pitched", ["Super Deluxe", "Deluxe", "Standard", "Basic", "King"])
|
| 37 |
+
num_followups = st.number_input("Number of Followups", min_value=0, max_value=20, value=2)
|
| 38 |
+
duration_of_pitch = st.number_input("Duration of Pitch (minutes)", min_value=1, max_value=120, value=30)
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
# # Assemble input into DataFrame
|
| 41 |
# input_data = pd.DataFrame([{
|