Winnie00 commited on
Commit
a86fec6
·
1 Parent(s): b4ed997

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -55,13 +55,13 @@ with gr.Blocks(title=title) as demo:
55
  gr.Markdown(description2)
56
  gr.Markdown("""---""")
57
  with gr.Column():
58
- gr.Markdown("""(Files/WechatIMG343.jpeg)""")
59
 
60
 
61
  with gr.Row():
62
  with gr.Column():
63
- age = gr.Number(label="Age Score", value=40)
64
- sex = gr.Dropdown(["Male", "Female"], label="Gender")
65
  cp = gr.Slider(minimum=1, maximum=4, default=1, step=1, label="Chest Pain Type")
66
  trtbps = gr.Slider(minimum=50, maximum=200, default=120, step=1, label="Resting Blood Pressure (in mm Hg)")
67
  chol = gr.Slider(minimum=80, maximum=500, default=190, step=1, label="Cholesterol Level (mg/dL)")
@@ -87,7 +87,7 @@ with gr.Blocks(title=title) as demo:
87
  )
88
 
89
  gr.Markdown("### Click on any of the examples below to see how it works:")
90
- gr.Examples([[20,"Male",1,1,1,1,1,1,1,1,1,1,1], [30,"Female",1,1,1,1,1,1,1,1,1,1,1]],
91
  [age,sex,cp,trtbps,chol,fbs,restecg,thalachh,exng,oldpeak,slp,caa,thall],
92
  [label,local_plot], main_func, cache_examples=True)
93
 
 
55
  gr.Markdown(description2)
56
  gr.Markdown("""---""")
57
  with gr.Column():
58
+ gr.Markdown("""![Take care!](Files/WechatIMG343.jpeg)""")
59
 
60
 
61
  with gr.Row():
62
  with gr.Column():
63
+ age = gr.Number(label="Age", value=40)
64
+ sex = gr.Dropdown(["Male", "Female"], label="Sex")
65
  cp = gr.Slider(minimum=1, maximum=4, default=1, step=1, label="Chest Pain Type")
66
  trtbps = gr.Slider(minimum=50, maximum=200, default=120, step=1, label="Resting Blood Pressure (in mm Hg)")
67
  chol = gr.Slider(minimum=80, maximum=500, default=190, step=1, label="Cholesterol Level (mg/dL)")
 
87
  )
88
 
89
  gr.Markdown("### Click on any of the examples below to see how it works:")
90
+ gr.Examples([[20,"Male",1,120,190,0,80,200,200,1,1,2,2], [30,"Female",1,120,190,0,80,200,200,1,1,2,2]],
91
  [age,sex,cp,trtbps,chol,fbs,restecg,thalachh,exng,oldpeak,slp,caa,thall],
92
  [label,local_plot], main_func, cache_examples=True)
93