zachsteele66
commited on
Commit
•
a6a906c
1
Parent(s):
cc2b649
Update app.py
Browse files
app.py
CHANGED
@@ -47,16 +47,20 @@ with gr.Blocks(title=title) as demo:
|
|
47 |
gr.Markdown("""---""")
|
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)
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
58 |
restecg = gr.Slider(label="restecg Score", minimum=1, maximum=5, value=4, step=1)
|
59 |
thalachh = gr.Slider(label="thalachh Score", minimum=1, maximum=5, value=4, step=1)
|
|
|
60 |
exng = gr.Slider(label="exng Score", minimum=1, maximum=5, value=4, step=1)
|
61 |
oldpeak = gr.Slider(label="oldpeak Score", minimum=1, maximum=5, value=4, step=1)
|
62 |
slp = gr.Slider(label="slp Score", minimum=1, maximum=5, value=4, step=1)
|
|
|
47 |
gr.Markdown("""---""")
|
48 |
gr.Markdown(description2)
|
49 |
gr.Markdown("""---""")
|
50 |
+
|
51 |
age = gr.Number(label="age Score", value=40)
|
|
|
|
|
52 |
sex = gr.Slider(label="sex Score", minimum=0, maximum=1, value=1, step=1)
|
53 |
cp = gr.Slider(label="cp Score", minimum=1, maximum=5, value=4, step=1)
|
54 |
+
trtbps = gr.Slider(label="trtbps Score", minimum=1, maximum=5, value=4, step=1)
|
55 |
+
|
56 |
+
chol = gr.ColorPicker(label="chol Score", colors=["white", "yellow", "orange", "red"], value="orange")
|
57 |
+
fbs_button = gr.inputs.Button(label="fbs")
|
58 |
+
def on_fbs_click():
|
59 |
+
fbs_button.label = "clicked!"
|
60 |
+
fbs_button.set_click_handler(on_fbs_click)
|
61 |
restecg = gr.Slider(label="restecg Score", minimum=1, maximum=5, value=4, step=1)
|
62 |
thalachh = gr.Slider(label="thalachh Score", minimum=1, maximum=5, value=4, step=1)
|
63 |
+
|
64 |
exng = gr.Slider(label="exng Score", minimum=1, maximum=5, value=4, step=1)
|
65 |
oldpeak = gr.Slider(label="oldpeak Score", minimum=1, maximum=5, value=4, step=1)
|
66 |
slp = gr.Slider(label="slp Score", minimum=1, maximum=5, value=4, step=1)
|