Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,12 @@ usage_frequency = st.number_input("Usage Frequency", min_value=0, max_value=100,
|
|
| 32 |
support_calls = st.number_input("Support Calls", min_value=0, max_value=50, value=2)
|
| 33 |
total_spend = st.number_input("Total Spend", min_value=0.0, max_value=10000.0, value=100.0, step=10.0)
|
| 34 |
|
| 35 |
-
#
|
| 36 |
gender = st.selectbox("Gender", options=["Male", "Female"])
|
| 37 |
-
subscription_type = st.selectbox("Subscription Type", options=["
|
| 38 |
-
contract_length = st.selectbox("Contract Length", options=["Monthly", "Quarterly"
|
| 39 |
|
|
|
|
| 40 |
input_df = pd.DataFrame({
|
| 41 |
"Age": [age],
|
| 42 |
"Tenure": [tenure],
|
|
|
|
| 32 |
support_calls = st.number_input("Support Calls", min_value=0, max_value=50, value=2)
|
| 33 |
total_spend = st.number_input("Total Spend", min_value=0.0, max_value=10000.0, value=100.0, step=10.0)
|
| 34 |
|
| 35 |
+
# ✅ Updated: Match categories used during training
|
| 36 |
gender = st.selectbox("Gender", options=["Male", "Female"])
|
| 37 |
+
subscription_type = st.selectbox("Subscription Type", options=["Premium", "Standard"])
|
| 38 |
+
contract_length = st.selectbox("Contract Length", options=["Monthly", "Quarterly"])
|
| 39 |
|
| 40 |
+
# Create a DataFrame for the input
|
| 41 |
input_df = pd.DataFrame({
|
| 42 |
"Age": [age],
|
| 43 |
"Tenure": [tenure],
|