Update pages/4_Model_Creation_and_Evaluation.py
Browse files
pages/4_Model_Creation_and_Evaluation.py
CHANGED
|
@@ -171,9 +171,9 @@ else:
|
|
| 171 |
st.warning("No Dataset Found")
|
| 172 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/7ZCmkouk1pS37_kREZmYJ.jpeg"
|
| 173 |
|
| 174 |
-
#
|
| 175 |
st.markdown(
|
| 176 |
-
"""
|
| 177 |
<style>
|
| 178 |
.stApp {{
|
| 179 |
background-image: url("{background_image_url}");
|
|
@@ -182,17 +182,34 @@ st.markdown(
|
|
| 182 |
background-position: top left; /* Starts repeating from the top-left corner */
|
| 183 |
background-attachment: fixed; /* Keeps the background fixed as you scroll */
|
| 184 |
}}
|
| 185 |
-
|
|
|
|
|
|
|
| 186 |
content: "";
|
| 187 |
position: absolute;
|
| 188 |
top: 0;
|
| 189 |
left: 0;
|
| 190 |
width: 100%;
|
| 191 |
height: 100%;
|
| 192 |
-
background: rgba(0, 0, 0, 0.4);
|
| 193 |
z-index: -1;
|
| 194 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
</style>
|
| 196 |
""",
|
| 197 |
unsafe_allow_html=True
|
| 198 |
)
|
|
|
|
|
|
| 171 |
st.warning("No Dataset Found")
|
| 172 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/7ZCmkouk1pS37_kREZmYJ.jpeg"
|
| 173 |
|
| 174 |
+
# Apply custom CSS for the background image and overlay
|
| 175 |
st.markdown(
|
| 176 |
+
f"""
|
| 177 |
<style>
|
| 178 |
.stApp {{
|
| 179 |
background-image: url("{background_image_url}");
|
|
|
|
| 182 |
background-position: top left; /* Starts repeating from the top-left corner */
|
| 183 |
background-attachment: fixed; /* Keeps the background fixed as you scroll */
|
| 184 |
}}
|
| 185 |
+
|
| 186 |
+
/* Semi-transparent overlay */
|
| 187 |
+
.stApp::before {{
|
| 188 |
content: "";
|
| 189 |
position: absolute;
|
| 190 |
top: 0;
|
| 191 |
left: 0;
|
| 192 |
width: 100%;
|
| 193 |
height: 100%;
|
| 194 |
+
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 195 |
z-index: -1;
|
| 196 |
+
}}
|
| 197 |
+
|
| 198 |
+
/* Container to center elements and limit width */
|
| 199 |
+
.content-container {{
|
| 200 |
+
max-width: 70%; /* Limit content width to 70% */
|
| 201 |
+
margin: 0 auto; /* Center the container */
|
| 202 |
+
padding: 50px; /* Add some padding for spacing */
|
| 203 |
+
}}
|
| 204 |
+
|
| 205 |
+
/* Styling the markdown content */
|
| 206 |
+
.stMarkdown {{
|
| 207 |
+
color: white; /* White text to ensure visibility */
|
| 208 |
+
font-size: 100px; /* Adjust font size for readability */
|
| 209 |
+
# text-align: center; /* Center align text */
|
| 210 |
+
}}
|
| 211 |
</style>
|
| 212 |
""",
|
| 213 |
unsafe_allow_html=True
|
| 214 |
)
|
| 215 |
+
|