tahirsher commited on
Commit
fed329c
·
verified ·
1 Parent(s): a4cce9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -7,12 +7,12 @@ flower_image_url = "https://i.postimg.cc/hG2FG85D/2.png"
7
  st.markdown(
8
  f"""
9
  <style>
10
- /* General background with flower image */
11
  html, body, [data-testid="stAppViewContainer"] {{
12
  background-image: url("{flower_image_url}");
13
- background-size: cover;
14
- background-position: center;
15
- background-repeat: no-repeat;
16
  font-family: 'Arial', sans-serif;
17
  }}
18
  </style>
@@ -22,7 +22,7 @@ st.markdown(
22
 
23
  # Streamlit UI elements
24
  st.title("Word Cloud Application")
25
- st.markdown("Welcome to the Word Cloud Application with a beautiful flower background!")
26
 
27
  # Add some interactivity
28
  if st.button("Click Me"):
 
7
  st.markdown(
8
  f"""
9
  <style>
10
+ /* General background with flower image positioned to the left */
11
  html, body, [data-testid="stAppViewContainer"] {{
12
  background-image: url("{flower_image_url}");
13
+ background-size: contain; /* Keep the image size proportional */
14
+ background-position: left center; /* Move image to the left */
15
+ background-repeat: no-repeat; /* Prevent tiling */
16
  font-family: 'Arial', sans-serif;
17
  }}
18
  </style>
 
22
 
23
  # Streamlit UI elements
24
  st.title("Word Cloud Application")
25
+ st.markdown("Welcome to the Word Cloud Application with a beautiful flower background aligned to the left!")
26
 
27
  # Add some interactivity
28
  if st.button("Click Me"):