Spaces:
Runtime error
Runtime error
Commit
·
63c1eb8
1
Parent(s):
72ca364
third commit
Browse files- prediction.py +8 -8
prediction.py
CHANGED
|
@@ -19,28 +19,28 @@ def run():
|
|
| 19 |
with st.form('Form Heart Disease Prediction'):
|
| 20 |
|
| 21 |
# field age
|
| 22 |
-
age = st.number_input('Age', min_value=18, max_value=90)
|
| 23 |
|
| 24 |
# field gender
|
| 25 |
-
gender = st.number_input('Gender', min_value=0, max_value=1)
|
| 26 |
|
| 27 |
# field impluse
|
| 28 |
-
impluse = st.number_input('Impluse', min_value=50 , max_value=200)
|
| 29 |
|
| 30 |
# field pressurehight
|
| 31 |
-
pressurehight = st.number_input('pressurehight', min_value=60 , max_value=250)
|
| 32 |
|
| 33 |
# field pressurelow
|
| 34 |
-
pressurelow = st.number_input('pressurelow', min_value=60, max_value=250)
|
| 35 |
|
| 36 |
# field glucose
|
| 37 |
-
glucose = st.number_input('glucose', min_value=50, max_value=370)
|
| 38 |
|
| 39 |
# field kcm
|
| 40 |
-
kcm = st.number_input('kcm', min_value=24, max_value=500)
|
| 41 |
|
| 42 |
# field troponin
|
| 43 |
-
troponin = st.number_input('troponin', min_value=1, max_value=500)
|
| 44 |
|
| 45 |
# submit button
|
| 46 |
submitted = st.form_submit_button('Predict')
|
|
|
|
| 19 |
with st.form('Form Heart Disease Prediction'):
|
| 20 |
|
| 21 |
# field age
|
| 22 |
+
age = st.number_input('Age', min_value=18, max_value=90, help='Usia')
|
| 23 |
|
| 24 |
# field gender
|
| 25 |
+
gender = st.number_input('Gender', min_value=0, max_value=1, help='Jenis kelamin(1:Laki-laki, 2:Perempuan)')
|
| 26 |
|
| 27 |
# field impluse
|
| 28 |
+
impluse = st.number_input('Impluse', min_value=50 , max_value=200, help='Detak jantung')
|
| 29 |
|
| 30 |
# field pressurehight
|
| 31 |
+
pressurehight = st.number_input('pressurehight', min_value=60 , max_value=250, help='Sistolik (Tekanan darah saat jantung berkontraksi/berdetak)')
|
| 32 |
|
| 33 |
# field pressurelow
|
| 34 |
+
pressurelow = st.number_input('pressurelow', min_value=60, max_value=250, help='Diastolik (tekanan darah saat jantung beristirahat/diantara detak)')
|
| 35 |
|
| 36 |
# field glucose
|
| 37 |
+
glucose = st.number_input('glucose', min_value=50, max_value=370, help='Kadar gula darah')
|
| 38 |
|
| 39 |
# field kcm
|
| 40 |
+
kcm = st.number_input('kcm', min_value=24, max_value=500, help='Test CK-MB (test pendeteksi enzim kreatin kinase)')
|
| 41 |
|
| 42 |
# field troponin
|
| 43 |
+
troponin = st.number_input('troponin', min_value=1, max_value=500, help='Test troponin (test kadar troponin/protein yang dilepaskan jika terjadi kerusakan jantung)')
|
| 44 |
|
| 45 |
# submit button
|
| 46 |
submitted = st.form_submit_button('Predict')
|