slickdata commited on
Commit
47d2fbb
·
1 Parent(s): 5f7c270

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,7 +30,7 @@ def make_prediction(gender, Partner, Dependents, tenure, MultipleLines,
30
  gender_input = gr.Dropdown(choices =['Female', 'Male'])
31
  Partner_input = gr.Dropdown(choices =['Yes', 'No'])
32
  Dependents_input = gr.Dropdown(choices =['Yes', 'No'])
33
- tenure_input = gr.Number()
34
  MultipleLines_input = gr.Dropdown(choices =['No phone service', 'No', 'Yes'])
35
  InternetService_input = gr.Dropdown(choices =['DSL', 'Fiber optic', 'No'])
36
  OnlineSecurity_input = gr.Dropdown(choices =['No', 'Yes', 'No internet service'])
@@ -40,8 +40,8 @@ TechSupport_input = gr.Dropdown(choices =['No', 'Yes', 'No internet service'])
40
  Contract_input = gr.Dropdown(choices =['Month-to-month', 'One year', 'Two year'])
41
  PaperlessBilling_input = gr.Dropdown(choices =['Yes', 'No'])
42
  PaymentMethod_input = gr.Dropdown(choices =['Electronic check', 'Mailed check', 'Bank transfer (automatic)','Credit card (automatic)'])
43
- MonthlyCharges_input = gr.Number()
44
- TotalCharges_input = gr.Number()
45
 
46
  output = gr.Textbox(label='Prediction')
47
 
 
30
  gender_input = gr.Dropdown(choices =['Female', 'Male'])
31
  Partner_input = gr.Dropdown(choices =['Yes', 'No'])
32
  Dependents_input = gr.Dropdown(choices =['Yes', 'No'])
33
+ tenure_input = gr.Number(label='Lenght of tenure (no. of months with Telco)')
34
  MultipleLines_input = gr.Dropdown(choices =['No phone service', 'No', 'Yes'])
35
  InternetService_input = gr.Dropdown(choices =['DSL', 'Fiber optic', 'No'])
36
  OnlineSecurity_input = gr.Dropdown(choices =['No', 'Yes', 'No internet service'])
 
40
  Contract_input = gr.Dropdown(choices =['Month-to-month', 'One year', 'Two year'])
41
  PaperlessBilling_input = gr.Dropdown(choices =['Yes', 'No'])
42
  PaymentMethod_input = gr.Dropdown(choices =['Electronic check', 'Mailed check', 'Bank transfer (automatic)','Credit card (automatic)'])
43
+ MonthlyCharges_input = gr.Number(label="Enter monthly charges")
44
+ TotalCharges_input = gr.Number(label="Enter total charges")
45
 
46
  output = gr.Textbox(label='Prediction')
47