Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -17,21 +17,6 @@ st.write("This tool predicts if an extraaLearn customer is likely to convert sta
|
|
| 17 |
|
| 18 |
st.subheader("Enter the customer details:")
|
| 19 |
|
| 20 |
-
'age': eL_data['age'],
|
| 21 |
-
'website_visits': eL_data['website_visits'],
|
| 22 |
-
'time_spent_on_website': eL_data['time_spent_on_website'],
|
| 23 |
-
'page_views_per_visit': eL_data['page_views_per_visit'],
|
| 24 |
-
'current_occupation': eL_data['current_occupation'],
|
| 25 |
-
'first_interaction': eL_data['first_interaction'],
|
| 26 |
-
'profile_completed': eL_data['profile_completed'],
|
| 27 |
-
'last_activity': eL_data['last_activity'],
|
| 28 |
-
'print_media_type1': eL_data['print_media_type1'],
|
| 29 |
-
'print_media_type2': eL_data['print_media_type2'],
|
| 30 |
-
'digital_media': eL_data['digital_media'],
|
| 31 |
-
'educational_channels': eL_data['educational_channels'],
|
| 32 |
-
'referral' : eL_data['referral']
|
| 33 |
-
|
| 34 |
-
|
| 35 |
# Collect user input
|
| 36 |
age = st.number_input("age", min_value=14, step=1)
|
| 37 |
website_visits = st.number_input("website_visits", min_value=1, value=2)
|
|
@@ -68,4 +53,4 @@ input_data = pd.DataFrame([{
|
|
| 68 |
# Predict button
|
| 69 |
if st.button("Predict"):
|
| 70 |
prediction = model.predict(input_data)
|
| 71 |
-
st.write(f"The predicted status for the customer is ${prediction[0]}
|
|
|
|
| 17 |
|
| 18 |
st.subheader("Enter the customer details:")
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
# Collect user input
|
| 21 |
age = st.number_input("age", min_value=14, step=1)
|
| 22 |
website_visits = st.number_input("website_visits", min_value=1, value=2)
|
|
|
|
| 53 |
# Predict button
|
| 54 |
if st.button("Predict"):
|
| 55 |
prediction = model.predict(input_data)
|
| 56 |
+
st.write(f"The predicted status for the customer is ${prediction[0]}")
|