Mpavan45 commited on
Commit
a6e190e
·
verified ·
1 Parent(s): b072194

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: cover; /* Ensures the image covers the full screen */
22
- background-position: repeat; /* Centers the background image */
 
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
- /* Styling the content to ensure text visibility */
 
 
 
 
 
 
42
  .stMarkdown {{
43
- color: black; /* White text to ensure visibility */
44
- font-size: 30px; /* Adjust font size for better readability */
 
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