Spaces:
Runtime error
Runtime error
Commit ·
d2965ed
1
Parent(s): 444d555
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def titanic(pclass,sex,age,sibsp,parch,embarked,fare_per_customer,embarked_remap
|
|
| 31 |
return {("This guy will"+("survive. " if res[0]==1 else "die. "))}
|
| 32 |
|
| 33 |
demo = gr.Interface(
|
| 34 |
-
|
| 35 |
title="Titanic Predictive Analytics",
|
| 36 |
description="Predict survivals. 0 for dead and 1 for survived. ",
|
| 37 |
allow_flagging="never",
|
|
@@ -44,7 +44,7 @@ demo = gr.Interface(
|
|
| 44 |
gr.inputs.Number(default=1.0, label="embarked(C=1,S=2,Q=3)"),
|
| 45 |
gr.inputs.Number(default=1.0, label="fare_per_customer"),
|
| 46 |
gr.inputs.Number(default=1.0, label="cabin(if the passanger has one cabin =1, else =0)"),
|
| 47 |
-
]
|
| 48 |
)
|
| 49 |
# outputs=gr.outputs.Textbox(self,type="auto",label="Hi"))
|
| 50 |
#("This guy will"+("survive. " if res[0]==1 else "die. ")
|
|
|
|
| 31 |
return {("This guy will"+("survive. " if res[0]==1 else "die. "))}
|
| 32 |
|
| 33 |
demo = gr.Interface(
|
| 34 |
+
titanic,
|
| 35 |
title="Titanic Predictive Analytics",
|
| 36 |
description="Predict survivals. 0 for dead and 1 for survived. ",
|
| 37 |
allow_flagging="never",
|
|
|
|
| 44 |
gr.inputs.Number(default=1.0, label="embarked(C=1,S=2,Q=3)"),
|
| 45 |
gr.inputs.Number(default=1.0, label="fare_per_customer"),
|
| 46 |
gr.inputs.Number(default=1.0, label="cabin(if the passanger has one cabin =1, else =0)"),
|
| 47 |
+
],
|
| 48 |
)
|
| 49 |
# outputs=gr.outputs.Textbox(self,type="auto",label="Hi"))
|
| 50 |
#("This guy will"+("survive. " if res[0]==1 else "die. ")
|