Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
101 |
-
return {"> $50,000": pred_bi}
|
102 |
elif pred <=.5:
|
103 |
-
|
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,
|