williambr commited on
Commit
0f061d3
·
1 Parent(s): e9398a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -22,6 +22,22 @@ city_name = st.text_input('Please Input your Desired City:')
22
  lat = st.text_input('Please Input the Latitude:' )
23
  long = st.text_input('Please Input the Longitude:' )
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  cities_list = []
27
  cities_list.append(city_name)
 
22
  lat = st.text_input('Please Input the Latitude:' )
23
  long = st.text_input('Please Input the Longitude:' )
24
 
25
+ def add_bg_from_url():
26
+ st.markdown(
27
+ f"""
28
+ <style>
29
+ .stApp {{
30
+ background-image: url("https://cdn.pixabay.com/photo/2019/04/24/11/27/flowers-4151900_960_720.jpg");
31
+ background-attachment: fixed;
32
+ background-size: cover
33
+ }}
34
+ </style>
35
+ """,
36
+ unsafe_allow_html=True
37
+ )
38
+
39
+ add_bg_from_url()
40
+
41
 
42
  cities_list = []
43
  cities_list.append(city_name)