Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
•
b60cf63
1
Parent(s):
86f63c4
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 float(res[0])==1 else 'die. '))}
|
32 |
|
33 |
demo = gr.Interface(
|
34 |
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 float(res[0])==1 else 'die. '))}
|
32 |
|
33 |
demo = gr.Interface(
|
34 |
titanic,
|