winterForestStump
commited on
Commit
•
3594692
1
Parent(s):
57915a4
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ classes = [
|
|
10 |
|
11 |
|
12 |
def classifier(age, job, marital, education, default, balance, housing,loan, contact):
|
13 |
-
pred = pipe.predict([[age, job, marital, education, default, balance, housing,loan, contact]])
|
14 |
label = f"Predicted output: **{classes[pred]}**"
|
15 |
return label
|
16 |
|
|
|
10 |
|
11 |
|
12 |
def classifier(age, job, marital, education, default, balance, housing,loan, contact):
|
13 |
+
pred = pipe.predict([[age, job, marital, education, default, balance, housing,loan, contact]])[0]
|
14 |
label = f"Predicted output: **{classes[pred]}**"
|
15 |
return label
|
16 |
|