Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 64 |
-
sex = gr.Dropdown(["Male", "Female"], label="
|
| 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,
|
| 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("""""")
|
| 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 |
|