Spaces:
Runtime error
Runtime error
Commit
·
444d555
1
Parent(s):
fe3adbc
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def titanic(pclass,sex,age,sibsp,parch,embarked,fare_per_customer,embarked_remap
|
|
28 |
# 'res' is a list of predictions returned as the label.
|
29 |
#global res
|
30 |
res = model.predict(np.asarray(input_list).reshape(1, -1))
|
31 |
-
return {("This guy will"+("survive. " if res[0]==1 else "die. ")}
|
32 |
|
33 |
demo = gr.Interface(
|
34 |
fn=titanic,
|
|
|
28 |
# 'res' is a list of predictions returned as the label.
|
29 |
#global res
|
30 |
res = model.predict(np.asarray(input_list).reshape(1, -1))
|
31 |
+
return {("This guy will"+("survive. " if res[0]==1 else "die. "))}
|
32 |
|
33 |
demo = gr.Interface(
|
34 |
fn=titanic,
|