zachsteele66 commited on
Commit
cc2b649
·
1 Parent(s): ba6940e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -48,6 +48,8 @@ with gr.Blocks(title=title) as demo:
48
  gr.Markdown(description2)
49
  gr.Markdown("""---""")
50
  age = gr.Number(label="age Score", value=40)
 
 
51
  sex = gr.Slider(label="sex Score", minimum=0, maximum=1, value=1, step=1)
52
  cp = gr.Slider(label="cp Score", minimum=1, maximum=5, value=4, step=1)
53
  trtbps = gr.Slider(label="trtbps Score", minimum=1, maximum=5, value=4, step=1)
 
48
  gr.Markdown(description2)
49
  gr.Markdown("""---""")
50
  age = gr.Number(label="age Score", value=40)
51
+ sex = gr.Dropdown(label="Sex", options=["Male", "Female"], value={"Male": 1, "Female": 0})
52
+
53
  sex = gr.Slider(label="sex Score", minimum=0, maximum=1, value=1, step=1)
54
  cp = gr.Slider(label="cp Score", minimum=1, maximum=5, value=4, step=1)
55
  trtbps = gr.Slider(label="trtbps Score", minimum=1, maximum=5, value=4, step=1)