tdubon commited on
Commit
e7ab20c
1 Parent(s): 8d90fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -110,12 +110,17 @@ iface = gr.Interface(
110
  " Bachelors degree(BA AB BS)", " Masters degree(MA MS MEng MEd MSW MBA)",
111
  " Prof school degree (MD DDS DVM LLB JD)",
112
  " Doctorate degree(PhD EdD)"], type="index", label="education"),
113
- gr.inputs.Radio([" Male", " Female"], label="sex", type="index"),
114
- gr.inputs.Slider(minimum = 0, maximum = 99999, label="capital_gains"),
115
- gr.inputs.Slider(minimum = 0, maximum = 4608, label="capital_losses")
116
  ],
117
  gr.outputs.Label(num_top_classes=2),
118
  live=True,
119
- analytics_enabled=False
 
 
 
 
120
  )
 
121
  iface.launch(debug=True)
 
110
  " Bachelors degree(BA AB BS)", " Masters degree(MA MS MEng MEd MSW MBA)",
111
  " Prof school degree (MD DDS DVM LLB JD)",
112
  " Doctorate degree(PhD EdD)"], type="index", label="education"),
113
+ gr.inputs.Radio([" Male", " Female"], label="Sex (M=0, F=1)", type="index"),
114
+ gr.inputs.Slider(minimum = 0, maximum = 99999, label="capital gains"),
115
+ gr.inputs.Slider(minimum = 0, maximum = 4608, label="capital losses")
116
  ],
117
  gr.outputs.Label(num_top_classes=2),
118
  live=True,
119
+ analytics_enabled=False,
120
+ examples=[
121
+ [" Masters degree(MA MS MEng MEd MSW MBA)", 0, 7298, 0],
122
+ [" Bachelors degree(BA AB BS)", 0, 6514, 0],
123
+ ],
124
  )
125
+
126
  iface.launch(debug=True)