Harika22 commited on
Commit
3cef3eb
·
verified ·
1 Parent(s): 2bce384

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -9
app.py CHANGED
@@ -1,14 +1,44 @@
1
  import streamlit as st
2
-
3
- page_element="""
4
- <style>
5
- [data-testid="stAppViewContainer"]{
6
- background-image: url("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/u9SXpMjOOHQ5jXpq2eQqx.jpeg")
7
- background-size: cover;
8
- }
9
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  """
11
- st.markdown(page_element, unsafe_allow_html=True)
 
 
12
 
13
 
14
  st.markdown("<h1>Zero to Hero in ML</h1>", unsafe_allow_html=True)
 
1
  import streamlit as st
2
+ custom_css = """
3
+ <style>
4
+ html, body, [data-testid="stAppViewContainer"] {
5
+ background: linear-gradient(
6
+ rgba(0, 0, 0, 0.6), /* Semi-transparent black overlay */
7
+ rgba(0, 0, 0, 0.6)
8
+ ),
9
+ url("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/QsKOKzW4ju_OC-SazQLuG.jpeg") no-repeat center center fixed;
10
+ background-size: cover; /* Cover the entire screen */
11
+ font-family: Arial, sans-serif;
12
+ color: #ffffff;
13
+ }
14
+ h1 {
15
+ color: #ffffff;
16
+ text-align: center;
17
+ margin-top: 20px;
18
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add shadow for better visibility */
19
+ }
20
+ /* Style sections */
21
+ .section {
22
+ margin: 20px auto;
23
+ padding: 20px;
24
+ background: rgba(255, 255, 255, 0.1); /* Transparent background for readability */
25
+ border-radius: 10px;
26
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
27
+ }
28
+ .section h2 {
29
+ color: #ffffff;
30
+ margin-bottom: 10px;
31
+ text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Add shadow for better visibility */
32
+ }
33
+ .section p {
34
+ line-height: 1.6;
35
+ font-size: 1.1rem;
36
+ }
37
+ </style>
38
  """
39
+
40
+ # Apply custom CSS
41
+ st.write(custom_css, unsafe_allow_html=True)
42
 
43
 
44
  st.markdown("<h1>Zero to Hero in ML</h1>", unsafe_allow_html=True)