Spaces:
Runtime error
Runtime error
Quick fix
Browse files
app.py
CHANGED
@@ -39,13 +39,13 @@ demo = gr.Interface(
|
|
39 |
description="Experiment with different characteristics of a passenger to predict whether he would have survived if he were aboard the titanic.",
|
40 |
allow_flagging="never",
|
41 |
inputs=[
|
42 |
-
gr.inputs.Dropdown(choices=["male","female"],
|
43 |
gr.inputs.Number(default=28.0, label="Age", precision=0),
|
44 |
-
gr.inputs.Slider(minimum=1.0,maximum=3.0,
|
45 |
gr.inputs.Number(default=14.4542, label="Fare ($)"),
|
46 |
gr.inputs.Number(default=0.0, label="Number of parents/children aboard", precision=0),
|
47 |
gr.inputs.Number(default=0.0, label="Number of siblings/spouses aboard", precision=0),
|
48 |
-
gr.inputs.Dropdown(choices=["S","C", "Q"],
|
49 |
],
|
50 |
outputs=gr.Image(type="pil"))
|
51 |
|
|
|
39 |
description="Experiment with different characteristics of a passenger to predict whether he would have survived if he were aboard the titanic.",
|
40 |
allow_flagging="never",
|
41 |
inputs=[
|
42 |
+
gr.inputs.Dropdown(choices=["male","female"], default="male", label="Sex"),
|
43 |
gr.inputs.Number(default=28.0, label="Age", precision=0),
|
44 |
+
gr.inputs.Slider(minimum=1.0,maximum=3.0,default=3.0,step=1.0, label="Ticket class (1st to 3rd)"),
|
45 |
gr.inputs.Number(default=14.4542, label="Fare ($)"),
|
46 |
gr.inputs.Number(default=0.0, label="Number of parents/children aboard", precision=0),
|
47 |
gr.inputs.Number(default=0.0, label="Number of siblings/spouses aboard", precision=0),
|
48 |
+
gr.inputs.Dropdown(choices=["S","C", "Q"], default="C", label="Port of Embarkation")
|
49 |
],
|
50 |
outputs=gr.Image(type="pil"))
|
51 |
|