update
Browse files
eda.py
CHANGED
|
@@ -13,7 +13,7 @@ def run():
|
|
| 13 |
st.title('Maternal Health')
|
| 14 |
|
| 15 |
#tambahkan gambar
|
| 16 |
-
image_homepage = Image.open('image
|
| 17 |
st.image(image_homepage, caption = 'Pregnant Woman')
|
| 18 |
|
| 19 |
|
|
@@ -49,7 +49,7 @@ def run():
|
|
| 49 |
st.write('## Visualization of Health Factors on the Level of Pregnancy Risk')
|
| 50 |
|
| 51 |
st.write('### Age Factors on the Level of Pregnancy Risk')
|
| 52 |
-
plot_age = Image.open('
|
| 53 |
st.image(plot_age)
|
| 54 |
st.write("Probability of pregnancy risk based on age:")
|
| 55 |
st.markdown("- The probability of women having a low and medium risk of pregnancy is when they are 20 years old with a higher probability of experiencing a low risk of pregnancy at that age.")
|
|
@@ -58,7 +58,7 @@ def run():
|
|
| 58 |
st.text(" ")
|
| 59 |
|
| 60 |
st.write('### Systolic pressure Factors on the Level of Pregnancy Risk')
|
| 61 |
-
plot_sys = Image.open('
|
| 62 |
st.image(plot_sys)
|
| 63 |
st.write("Probability of pregnancy risk based on Systolic pressure:")
|
| 64 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when the systolic pressure is 120.")
|
|
@@ -67,7 +67,7 @@ def run():
|
|
| 67 |
st.text(" ")
|
| 68 |
|
| 69 |
st.write('### Diastolic pressure Factors on the Level of Pregnancy Risk')
|
| 70 |
-
plot_dys = Image.open('
|
| 71 |
st.image(plot_dys)
|
| 72 |
st.write("Probability of pregnancy risk based on Diastolic pressure:")
|
| 73 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when the diastolic pressure is 80.")
|
|
@@ -75,7 +75,7 @@ def run():
|
|
| 75 |
st.text(" ")
|
| 76 |
|
| 77 |
st.write('### Blood Sugar Factors on the Level of Pregnancy Risk')
|
| 78 |
-
plot_bs = Image.open('
|
| 79 |
st.image(plot_bs)
|
| 80 |
st.write("Probability of pregnancy risk based on blood sugar levels:")
|
| 81 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when the blood sugar level is 7.")
|
|
@@ -84,7 +84,7 @@ def run():
|
|
| 84 |
st.text(" ")
|
| 85 |
|
| 86 |
st.write('### Heart Rate Factors on the Level of Pregnancy Risk')
|
| 87 |
-
plot_heartrate = Image.open('
|
| 88 |
st.image(plot_heartrate)
|
| 89 |
st.write("Probability of pregnancy risk based on heart rate:")
|
| 90 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when her heart rate is 70-80.")
|
|
@@ -93,7 +93,7 @@ def run():
|
|
| 93 |
st.text(" ")
|
| 94 |
|
| 95 |
st.write('### Body temperature Factors on the Level of Pregnancy Risk')
|
| 96 |
-
plot_temp = Image.open('
|
| 97 |
st.image(plot_temp)
|
| 98 |
st.write("Body temperature does not have a significant effect on the risk of pregnancy")
|
| 99 |
st.text(" ")
|
|
|
|
| 13 |
st.title('Maternal Health')
|
| 14 |
|
| 15 |
#tambahkan gambar
|
| 16 |
+
image_homepage = Image.open('image.jpg')
|
| 17 |
st.image(image_homepage, caption = 'Pregnant Woman')
|
| 18 |
|
| 19 |
|
|
|
|
| 49 |
st.write('## Visualization of Health Factors on the Level of Pregnancy Risk')
|
| 50 |
|
| 51 |
st.write('### Age Factors on the Level of Pregnancy Risk')
|
| 52 |
+
plot_age = Image.open('age.jpg')
|
| 53 |
st.image(plot_age)
|
| 54 |
st.write("Probability of pregnancy risk based on age:")
|
| 55 |
st.markdown("- The probability of women having a low and medium risk of pregnancy is when they are 20 years old with a higher probability of experiencing a low risk of pregnancy at that age.")
|
|
|
|
| 58 |
st.text(" ")
|
| 59 |
|
| 60 |
st.write('### Systolic pressure Factors on the Level of Pregnancy Risk')
|
| 61 |
+
plot_sys = Image.open('isys.jpg')
|
| 62 |
st.image(plot_sys)
|
| 63 |
st.write("Probability of pregnancy risk based on Systolic pressure:")
|
| 64 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when the systolic pressure is 120.")
|
|
|
|
| 67 |
st.text(" ")
|
| 68 |
|
| 69 |
st.write('### Diastolic pressure Factors on the Level of Pregnancy Risk')
|
| 70 |
+
plot_dys = Image.open('dys.jpg')
|
| 71 |
st.image(plot_dys)
|
| 72 |
st.write("Probability of pregnancy risk based on Diastolic pressure:")
|
| 73 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when the diastolic pressure is 80.")
|
|
|
|
| 75 |
st.text(" ")
|
| 76 |
|
| 77 |
st.write('### Blood Sugar Factors on the Level of Pregnancy Risk')
|
| 78 |
+
plot_bs = Image.open('bs.jpg')
|
| 79 |
st.image(plot_bs)
|
| 80 |
st.write("Probability of pregnancy risk based on blood sugar levels:")
|
| 81 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when the blood sugar level is 7.")
|
|
|
|
| 84 |
st.text(" ")
|
| 85 |
|
| 86 |
st.write('### Heart Rate Factors on the Level of Pregnancy Risk')
|
| 87 |
+
plot_heartrate = Image.open('heartrate.jpg')
|
| 88 |
st.image(plot_heartrate)
|
| 89 |
st.write("Probability of pregnancy risk based on heart rate:")
|
| 90 |
st.markdown("- The probability that a woman has a low and medium risk of pregnancy is when her heart rate is 70-80.")
|
|
|
|
| 93 |
st.text(" ")
|
| 94 |
|
| 95 |
st.write('### Body temperature Factors on the Level of Pregnancy Risk')
|
| 96 |
+
plot_temp = Image.open('temp.jpg')
|
| 97 |
st.image(plot_temp)
|
| 98 |
st.write("Body temperature does not have a significant effect on the risk of pregnancy")
|
| 99 |
st.text(" ")
|