tdubon commited on
Commit
9eab2cb
·
1 Parent(s): 43e52d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -99,10 +99,12 @@ def process_inputs(education, sex, capital_gains, capital_losses):
99
  if pred > .5:
100
  pred_bi = 1
101
  return {"> $50,000": pred_bi}
102
- else:
103
  pred_bi = 0
104
  return {"<= $50,000": pred_bi}
105
 
 
 
106
  iface = gr.Interface(
107
  process_inputs,
108
  [
 
99
  if pred > .5:
100
  pred_bi = 1
101
  return {"> $50,000": pred_bi}
102
+ elif pred <=.5:
103
  pred_bi = 0
104
  return {"<= $50,000": pred_bi}
105
 
106
+
107
+
108
  iface = gr.Interface(
109
  process_inputs,
110
  [