Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,20 +7,20 @@ model = joblib.load('Churn_PredCls.joblib')
|
|
7 |
|
8 |
gender = st.selectbox("Choose sex", ['Male', 'Female'])
|
9 |
SeniorCitizen = st.sidebar.selectbox("SeniorCitizen", ['Yes', 'No'])
|
10 |
-
Partner = st.sidebar.selectbox("Does he/she have partner?", ['
|
11 |
Dependents = st.sidebar.selectbox("Dependents", ['Yes', 'No'])
|
12 |
tenure = st.slider("Choose tenure", 0, 100)
|
13 |
-
PhoneService = st.sidebar.selectbox("PhoneService", ['
|
14 |
MultipleLines = st.sidebar.selectbox("MultipleLines", ['Yes', 'No'])
|
15 |
InternetService = st.selectbox("InternetService", ['DSL', 'Fiber optic', 'No'])
|
16 |
-
OnlineSecurity = st.sidebar.selectbox("OnlineSecurity", ['
|
17 |
OnlineBackup = st.sidebar.selectbox("OnlineBackup", ['Yes', 'No'])
|
18 |
-
DeviceProtection = st.sidebar.selectbox("DeviceProtection", ['
|
19 |
TechSupport = st.sidebar.selectbox("TechSupport", ['Yes', 'No'])
|
20 |
-
StreamingTV = st.sidebar.selectbox("StreamingTV", ['
|
21 |
StreamingMovies = st.sidebar.selectbox("StreamingMovies", ['Yes', 'No'])
|
22 |
Contract = st.selectbox("Contract", ['Month-to-month', 'One year', 'Two year'])
|
23 |
-
PaperlessBilling = st.sidebar.selectbox("PaperlessBilling", ['
|
24 |
PaymentMethod = st.selectbox("PaymentMethod", ['Electronic check', 'Mailed check', 'Bank transfer (automatic)', 'Credit card (automatic)'])
|
25 |
MonthlyCharges = st.slider("MonthlyCharges", 0, 1000)
|
26 |
TotalCharges = st.slider("TotalCharges", 0, 10000)
|
|
|
7 |
|
8 |
gender = st.selectbox("Choose sex", ['Male', 'Female'])
|
9 |
SeniorCitizen = st.sidebar.selectbox("SeniorCitizen", ['Yes', 'No'])
|
10 |
+
Partner = st.sidebar.selectbox("Does he/she have partner?", ['No', 'Yes'])
|
11 |
Dependents = st.sidebar.selectbox("Dependents", ['Yes', 'No'])
|
12 |
tenure = st.slider("Choose tenure", 0, 100)
|
13 |
+
PhoneService = st.sidebar.selectbox("PhoneService", ['No', 'Yes'])
|
14 |
MultipleLines = st.sidebar.selectbox("MultipleLines", ['Yes', 'No'])
|
15 |
InternetService = st.selectbox("InternetService", ['DSL', 'Fiber optic', 'No'])
|
16 |
+
OnlineSecurity = st.sidebar.selectbox("OnlineSecurity", ['No', 'Yes'])
|
17 |
OnlineBackup = st.sidebar.selectbox("OnlineBackup", ['Yes', 'No'])
|
18 |
+
DeviceProtection = st.sidebar.selectbox("DeviceProtection", ['No', 'Yes'])
|
19 |
TechSupport = st.sidebar.selectbox("TechSupport", ['Yes', 'No'])
|
20 |
+
StreamingTV = st.sidebar.selectbox("StreamingTV", ['No', 'Yes'])
|
21 |
StreamingMovies = st.sidebar.selectbox("StreamingMovies", ['Yes', 'No'])
|
22 |
Contract = st.selectbox("Contract", ['Month-to-month', 'One year', 'Two year'])
|
23 |
+
PaperlessBilling = st.sidebar.selectbox("PaperlessBilling", ['No', 'Yes'])
|
24 |
PaymentMethod = st.selectbox("PaymentMethod", ['Electronic check', 'Mailed check', 'Bank transfer (automatic)', 'Credit card (automatic)'])
|
25 |
MonthlyCharges = st.slider("MonthlyCharges", 0, 1000)
|
26 |
TotalCharges = st.slider("TotalCharges", 0, 10000)
|