tdubon commited on
Commit
937b616
·
1 Parent(s): 2351f00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -97,11 +97,9 @@ def process_inputs(education, sex, capital_gains, capital_losses):
97
 
98
  pred = model.predict(df)
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
  iface = gr.Interface(
107
  process_inputs,
 
97
 
98
  pred = model.predict(df)
99
  if pred > .5:
100
+ return {"> $50,000": pred}
 
101
  elif pred <=.5:
102
+ return {"<= $50,000": pred}
 
103
 
104
  iface = gr.Interface(
105
  process_inputs,