Louis VAUBOURDOLLE
commited on
Commit
·
6263a3a
1
Parent(s):
03512ca
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def sentence_builder(credit, age, tenure, balance, nb_prods, has_card, active, e
|
|
| 43 |
}]
|
| 44 |
df = pd.json_normalize(data)
|
| 45 |
res = bool(pl.predict(df)[0])
|
| 46 |
-
return
|
| 47 |
|
| 48 |
iface = gr.Interface(
|
| 49 |
sentence_builder,
|
|
|
|
| 43 |
}]
|
| 44 |
df = pd.json_normalize(data)
|
| 45 |
res = bool(pl.predict(df)[0])
|
| 46 |
+
return 'User will stay' if res else 'User will exit'
|
| 47 |
|
| 48 |
iface = gr.Interface(
|
| 49 |
sentence_builder,
|