Spaces:
Build error
Build error
Commit
·
23e2686
1
Parent(s):
e051a70
Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,8 @@ with gr.Blocks(title=title) as demo:
|
|
52 |
sex = gr.Radio(["Male", "Female"], label="Gender", type = "index", info = "What is your gender?")
|
53 |
cp = gr.Radio([0,1,2,3,4,5], label="Chest Pain", info="Rate the severity of your chest pain [0: none, 5: ER RIGHT NOW]:")
|
54 |
trtbps = gr.Number(label="Resting Blood Pressure", info = "What is your resting blood pressure?", minimum=1, maximum=200, value=4)
|
55 |
-
chol = gr.Slider(label="
|
56 |
-
fbs = gr.
|
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=205, value=4, step=1)
|
@@ -77,7 +77,7 @@ with gr.Blocks(title=title) as demo:
|
|
77 |
)
|
78 |
|
79 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|
80 |
-
gr.Examples([[24,"Male",4,4,5,
|
81 |
|
82 |
|
83 |
demo.launch()
|
|
|
52 |
sex = gr.Radio(["Male", "Female"], label="Gender", type = "index", info = "What is your gender?")
|
53 |
cp = gr.Radio([0,1,2,3,4,5], label="Chest Pain", info="Rate the severity of your chest pain [0: none, 5: ER RIGHT NOW]:")
|
54 |
trtbps = gr.Number(label="Resting Blood Pressure", info = "What is your resting blood pressure?", minimum=1, maximum=200, value=4)
|
55 |
+
chol = gr.Slider(label="Cholesterol", info="What is your Cholesterol level?", minimum=1, maximum=570, value=4, step=1)
|
56 |
+
fbs = gr.Radio(["Yes", "No"], label="Blood Sugar", info="Do you have high blood sugar?", type="index")
|
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=205, value=4, step=1)
|
|
|
77 |
)
|
78 |
|
79 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|
80 |
+
gr.Examples([[24,"Male",4,4,5,"Yes",4,4,5,5,1,2,3], [24,"Male",4,4,"Yes",3,3,2,1,1,1,2,3]], [age, sex, cp, trtbps, chol, fbs, restecg, thalachh,exng,oldpeak,slp,caa,thall], [label,local_plot], main_func, cache_examples=True)
|
81 |
|
82 |
|
83 |
demo.launch()
|