arifshora commited on
Commit
71a7fc2
·
verified ·
1 Parent(s): 73d9518

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -27,9 +27,9 @@ SeniorCitizen = st.selectbox("Is the customer a senior citizen?", ["Yes", "No"])
27
 
28
  # Convert categorical inputs to match model training
29
  input_data = pd.DataFrame([{
30
- 'Partner': 1 if Partner == "Yes" else 0,
31
- 'Dependents': 1 if Dependents == "Yes" else 0,
32
- 'PhoneService': 1 if PhoneService == "Yes" else 0,
33
  'InternetService': InternetService,
34
  'Contract': Contract,
35
  'PaymentMethod': PaymentMethod,
 
27
 
28
  # Convert categorical inputs to match model training
29
  input_data = pd.DataFrame([{
30
+ 'Partner': Partner,
31
+ 'Dependents': Dependents,
32
+ 'PhoneService': PhoneService,
33
  'InternetService': InternetService,
34
  'Contract': Contract,
35
  'PaymentMethod': PaymentMethod,