innoefawwaz1 commited on
Commit
edcca61
1 Parent(s): 41d9dfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import requests
3
 
4
  # Give the Name of the Application
5
- st.title('Customer Churn Prediction')
6
 
7
  # Create Submit Form
8
  with st.form(key='form_parameters'):
@@ -10,7 +10,7 @@ with st.form(key='form_parameters'):
10
  s = st.sidebar.selectbox(label='SeniorCitizen', options=[0,1])
11
  p = st.sidebar.selectbox(label='Partner', options=['No', 'Yes'])
12
  d = st.sidebar.selectbox(label='Dependents', options=['No', 'Yes'])
13
- t = st.number_input('Tenure', min_value=0, step=1, max_value=73)
14
  ps = st.sidebar.selectbox(label='PhoneService', options=['No', 'Yes'])
15
  ml = st.sidebar.selectbox(label='MultipleLines', options=['No phone service','No','Yes'])
16
  ins = st.sidebar.selectbox(label='InternetService', options=['No','DSL','Fiber optic'])
@@ -57,4 +57,4 @@ if submitted:
57
  st.title('Telco Customer Churn is {}'.format(res['label_names']))
58
  else:
59
  st.title("Unexpected Error")
60
- st.write(r.status_code)
 
2
  import requests
3
 
4
  # Give the Name of the Application
5
+ st.title('Prediction Churn of Customer')
6
 
7
  # Create Submit Form
8
  with st.form(key='form_parameters'):
 
10
  s = st.sidebar.selectbox(label='SeniorCitizen', options=[0,1])
11
  p = st.sidebar.selectbox(label='Partner', options=['No', 'Yes'])
12
  d = st.sidebar.selectbox(label='Dependents', options=['No', 'Yes'])
13
+ t = st.sidebar.selectbox(label='Tenure', options=[24,48,73])
14
  ps = st.sidebar.selectbox(label='PhoneService', options=['No', 'Yes'])
15
  ml = st.sidebar.selectbox(label='MultipleLines', options=['No phone service','No','Yes'])
16
  ins = st.sidebar.selectbox(label='InternetService', options=['No','DSL','Fiber optic'])
 
57
  st.title('Telco Customer Churn is {}'.format(res['label_names']))
58
  else:
59
  st.title("Unexpected Error")
60
+ st.write(r.status_code)