humeur commited on
Commit
f51246b
1 Parent(s): c09866e
Files changed (1) hide show
  1. app.py +3 -3
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"], value="male", label="Sex"),
43
  gr.inputs.Number(default=28.0, label="Age", precision=0),
44
- gr.inputs.Slider(minimum=1.0,maximum=3.0,value=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"], value="C", label="Port of Embarkation")
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