Spaces:
Sleeping
Sleeping
Update pages/4_Model Creation and Evaluation.py
Browse files
pages/4_Model Creation and Evaluation.py
CHANGED
|
@@ -13,17 +13,16 @@ st.markdown("<h1 style='text-align:center; color:purple;'>Model Creation and Eva
|
|
| 13 |
|
| 14 |
# Background Styling
|
| 15 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/zK1vosRLYAQ4EFqG8JyEs.png"
|
|
|
|
| 16 |
st.markdown(
|
| 17 |
f"""
|
| 18 |
<style>
|
| 19 |
.stApp {{
|
| 20 |
background-image: url("{background_image_url}");
|
| 21 |
-
background-size:
|
| 22 |
-
background-
|
|
|
|
| 23 |
background-attachment: fixed; /* Keeps the background fixed as you scroll */
|
| 24 |
-
height: 100vh;
|
| 25 |
-
width: 100%;
|
| 26 |
-
overflow: hidden; /* Prevents any overflow that might cause the background image to zoom */
|
| 27 |
}}
|
| 28 |
|
| 29 |
/* Semi-transparent overlay */
|
|
@@ -37,17 +36,25 @@ st.markdown(
|
|
| 37 |
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 38 |
z-index: -1;
|
| 39 |
}}
|
| 40 |
-
|
| 41 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
.stMarkdown {{
|
| 43 |
-
color:
|
| 44 |
-
font-size:
|
|
|
|
| 45 |
}}
|
| 46 |
</style>
|
| 47 |
""",
|
| 48 |
unsafe_allow_html=True
|
| 49 |
)
|
| 50 |
|
|
|
|
| 51 |
# Title Section
|
| 52 |
st.title("Model Training and Selection with Optuna")
|
| 53 |
|
|
|
|
| 13 |
|
| 14 |
# Background Styling
|
| 15 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/zK1vosRLYAQ4EFqG8JyEs.png"
|
| 16 |
+
# Apply custom CSS for the background image and overlay
|
| 17 |
st.markdown(
|
| 18 |
f"""
|
| 19 |
<style>
|
| 20 |
.stApp {{
|
| 21 |
background-image: url("{background_image_url}");
|
| 22 |
+
background-size: auto; /* Ensures the image retains its original size */
|
| 23 |
+
background-repeat: repeat; /* Makes the image repeat to cover the entire background */
|
| 24 |
+
background-position: top left; /* Starts repeating from the top-left corner */
|
| 25 |
background-attachment: fixed; /* Keeps the background fixed as you scroll */
|
|
|
|
|
|
|
|
|
|
| 26 |
}}
|
| 27 |
|
| 28 |
/* Semi-transparent overlay */
|
|
|
|
| 36 |
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 37 |
z-index: -1;
|
| 38 |
}}
|
| 39 |
+
|
| 40 |
+
/* Container to center elements and limit width */
|
| 41 |
+
.content-container {{
|
| 42 |
+
max-width: 70%; /* Limit content width to 70% */
|
| 43 |
+
margin: 0 auto; /* Center the container */
|
| 44 |
+
padding: 50px; /* Add some padding for spacing */
|
| 45 |
+
}}
|
| 46 |
+
/* Styling the markdown content */
|
| 47 |
.stMarkdown {{
|
| 48 |
+
color: white; /* White text to ensure visibility */
|
| 49 |
+
font-size: 100px; /* Adjust font size for readability */
|
| 50 |
+
# text-align: center; /* Center align text */
|
| 51 |
}}
|
| 52 |
</style>
|
| 53 |
""",
|
| 54 |
unsafe_allow_html=True
|
| 55 |
)
|
| 56 |
|
| 57 |
+
|
| 58 |
# Title Section
|
| 59 |
st.title("Model Training and Selection with Optuna")
|
| 60 |
|