MrUtakata commited on
Commit
c6206b4
·
verified ·
1 Parent(s): b9f016f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- # If the encoder was re-fitted to ignore unknowns, you can keep your original options.
36
  gender = st.selectbox("Gender", options=["Male", "Female"])
37
- subscription_type = st.selectbox("Subscription Type", options=["Type B", "Type C"])
38
- contract_length = st.selectbox("Contract Length", options=["Monthly", "Quarterly", "Yearly"])
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],