Commit
·
a24e56d
1
Parent(s):
b3268c8
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks(title=title) as demo:
|
|
58 |
trtbps = gr.inputs.Slider(1, 200, default=120, label="Resting blood pressure")
|
59 |
chol = gr.Number(label="What is your cholesterol in (mg/dl)?", value=130, info = "cholestoral in mg/dl" )
|
60 |
fbs = gr.Dropdown(label="Is your fasting blood sugar > 120 mg/dl?", choices = ["yes","no"], type = "index")
|
61 |
-
restecg = gr.Dropdown(label="What is your resting ECG result?", choices = ["normal","ST-T wave abnormality"
|
62 |
thall = gr.Dropdown(label="What is your Thalassemia condition?", choices = ["NULL","Fixed Defect", "Normal Blood Flow", "Reversible Defect"], type = "index", value = "NULL")
|
63 |
|
64 |
with gr.Column():
|
@@ -69,7 +69,7 @@ with gr.Blocks(title=title) as demo:
|
|
69 |
caa = gr.Dropdown(label="Degree of coronary artery anomaly", choices = ["0","1","2","3","4"], type = "index", value = "1")
|
70 |
|
71 |
|
72 |
-
submit_btn = gr.Button("
|
73 |
|
74 |
with gr.Column(visible=True) as output_col:
|
75 |
label = gr.Label(label = "Predicted Label")
|
|
|
58 |
trtbps = gr.inputs.Slider(1, 200, default=120, label="Resting blood pressure")
|
59 |
chol = gr.Number(label="What is your cholesterol in (mg/dl)?", value=130, info = "cholestoral in mg/dl" )
|
60 |
fbs = gr.Dropdown(label="Is your fasting blood sugar > 120 mg/dl?", choices = ["yes","no"], type = "index")
|
61 |
+
restecg = gr.Dropdown(label="What is your resting ECG result?", choices = ["normal","ST-T wave abnormality"], type = "index", value = "normal", info = "resting ESG result")
|
62 |
thall = gr.Dropdown(label="What is your Thalassemia condition?", choices = ["NULL","Fixed Defect", "Normal Blood Flow", "Reversible Defect"], type = "index", value = "NULL")
|
63 |
|
64 |
with gr.Column():
|
|
|
69 |
caa = gr.Dropdown(label="Degree of coronary artery anomaly", choices = ["0","1","2","3","4"], type = "index", value = "1")
|
70 |
|
71 |
|
72 |
+
submit_btn = gr.Button("Process")
|
73 |
|
74 |
with gr.Column(visible=True) as output_col:
|
75 |
label = gr.Label(label = "Predicted Label")
|