Update app.py
Browse files
app.py
CHANGED
|
@@ -66,43 +66,43 @@ if uploaded_file is not None:
|
|
| 66 |
st.write(classification_result)
|
| 67 |
|
| 68 |
# Educational content
|
| 69 |
-
|
| 70 |
-
|
| 71 |
- [Breast Cancer Overview](https://www.who.int/news-room/fact-sheets/detail/breast-cancer)
|
| 72 |
- [Preventing Breast Cancer](https://www.cancer.gov/types/breast/patient/breast-prevention-pdq)
|
| 73 |
""")
|
| 74 |
# Determine the current Streamlit theme (light or dark)
|
| 75 |
-
|
| 76 |
|
| 77 |
# Define button styling based on theme
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
|
| 87 |
# Rounded button-like element with dynamic styling
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
</div>
|
| 108 |
""", unsafe_allow_html=True)
|
|
|
|
| 66 |
st.write(classification_result)
|
| 67 |
|
| 68 |
# Educational content
|
| 69 |
+
st.markdown("### Learn More About Breast Cancer")
|
| 70 |
+
st.markdown("""
|
| 71 |
- [Breast Cancer Overview](https://www.who.int/news-room/fact-sheets/detail/breast-cancer)
|
| 72 |
- [Preventing Breast Cancer](https://www.cancer.gov/types/breast/patient/breast-prevention-pdq)
|
| 73 |
""")
|
| 74 |
# Determine the current Streamlit theme (light or dark)
|
| 75 |
+
theme = st.get_option("theme.base")
|
| 76 |
|
| 77 |
# Define button styling based on theme
|
| 78 |
+
if theme == "light":
|
| 79 |
+
button_bg_color = "#2c2e35"
|
| 80 |
+
button_border_color = "1px solid black"
|
| 81 |
+
button_text_color = "black"
|
| 82 |
+
else:
|
| 83 |
+
button_bg_color = "#2c2e35"
|
| 84 |
+
button_border_color = "1px solid #fff"
|
| 85 |
+
button_text_color = "#fff"
|
| 86 |
|
| 87 |
# Rounded button-like element with dynamic styling
|
| 88 |
+
st.markdown(f"""
|
| 89 |
+
<style>
|
| 90 |
+
.rounded-button {{
|
| 91 |
+
display: inline-block;
|
| 92 |
+
padding: 7px 15px;
|
| 93 |
+
font-size: 16px;
|
| 94 |
+
color: {button_text_color};
|
| 95 |
+
background-color: {button_bg_color};
|
| 96 |
+
border: {button_border_color};
|
| 97 |
+
border-radius: 7px;
|
| 98 |
+
text-align: center;
|
| 99 |
+
text-decoration: none;
|
| 100 |
+
cursor: default;
|
| 101 |
+
}}
|
| 102 |
+
</style>
|
| 103 |
+
<div style="text-align: center;">
|
| 104 |
+
<div class="rounded-button">
|
| 105 |
+
Created by: Samuel Ameyaw
|
| 106 |
+
</div>
|
| 107 |
</div>
|
| 108 |
""", unsafe_allow_html=True)
|