paragon-analytics commited on
Commit
4a55cb5
·
verified ·
1 Parent(s): e2eab41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -63,19 +63,19 @@ with gr.Blocks(title=title) as demo:
63
  gr.Markdown("""---""")
64
  with gr.Row():
65
  with gr.Column():
66
- age = gr.Slider(label="age", minimum=1, maximum=6, value=4, step=1)
67
- sex = gr.Slider(label="sex", minimum=1, maximum=8, value=4, step=1)
68
- cp = gr.Slider(label="cp Score", minimum=1, maximum=5, value=4, step=.1)
69
- trestbps = gr.Slider(label="trestbps Score", minimum=1, maximum=5, value=4, step=.1)
70
- chol = gr.Slider(label="chol Score", minimum=1, maximum=5, value=4, step=.1)
71
- fbs = gr.Slider(label="fbs Score", minimum=1, maximum=5, value=4, step=.1)
72
- restecg = gr.Slider(label="restecg Score", minimum=1, maximum=5, value=4, step=.1)
73
- thalach = gr.Slider(label="thalach Score", minimum=1, maximum=5, value=4, step=.1)
74
- exang = gr.Slider(label="exang Score", minimum=1, maximum=5, value=4, step=.1)
75
- oldpeak = gr.Slider(label="oldpeak Score", minimum=1, maximum=5, value=4, step=.1)
76
- slope = gr.Slider(label="slope Score", minimum=1, maximum=5, value=4, step=.1)
77
- ca = gr.Slider(label="ca Score", minimum=1, maximum=5, value=4, step=.1)
78
- thal = gr.Slider(label="thal Score", minimum=1, maximum=5, value=4, step=.1)
79
 
80
  submit_btn = gr.Button("Analyze")
81
  with gr.Column(visible=True,scale=1, min_width=600) as output_col:
 
63
  gr.Markdown("""---""")
64
  with gr.Row():
65
  with gr.Column():
66
+ age = gr.Slider(label="age", minimum=17, maximum=74, value=24, step=1)
67
+ sex = gr.Slider(label="sex", minimum=0, maximum=1, value=1, step=1)
68
+ cp = gr.Slider(label="cp Score", minimum=1, maximum=4, value=3, step=.1)
69
+ trestbps = gr.Slider(label="trestbps Score", minimum=94, maximum=200, value=150, step=.1)
70
+ chol = gr.Slider(label="chol Score", minimum=126, maximum=564, value=400, step=.1)
71
+ fbs = gr.Slider(label="fbs Score", minimum=0, maximum=1, value=0, step=.1)
72
+ restecg = gr.Slider(label="restecg Score", minimum=0, maximum=2, value=1, step=.1)
73
+ thalach = gr.Slider(label="thalach Score", minimum=71, maximum=202, value=90, step=.1)
74
+ exang = gr.Slider(label="exang Score", minimum=0, maximum=1, value=1, step=.1)
75
+ oldpeak = gr.Slider(label="oldpeak Score", minimum=0, maximum=6, value=4, step=.1)
76
+ slope = gr.Slider(label="slope Score", minimum=1, maximum=3, value=2, step=.1)
77
+ ca = gr.Slider(label="ca Score", minimum=0, maximum=3, value=2, step=.1)
78
+ thal = gr.Slider(label="thal Score", minimum=3, maximum=7, value=4, step=.1)
79
 
80
  submit_btn = gr.Button("Analyze")
81
  with gr.Column(visible=True,scale=1, min_width=600) as output_col: