themeetjani commited on
Commit
e223247
1 Parent(s): 1a401a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import streamlit as st
2
  import pandas as pd
3
-
 
4
  st.set_page_config(
5
  page_title="app",
6
  page_icon="📈",
@@ -39,4 +40,19 @@ text-align: center;
39
  <p>Developed with ❤ by DataAi Team. Please contact us at +91 12-32130332</p>
40
  </div>
41
  """
42
- st.markdown(footer,unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
  import pandas as pd
3
+ import base64
4
+
5
  st.set_page_config(
6
  page_title="app",
7
  page_icon="📈",
 
40
  <p>Developed with ❤ by DataAi Team. Please contact us at +91 12-32130332</p>
41
  </div>
42
  """
43
+ st.markdown(footer,unsafe_allow_html=True)
44
+
45
+ main_bg_ext = "jpg"
46
+ main_bg = "vally.jpg"
47
+
48
+ st.markdown(
49
+ f"""
50
+ <style>
51
+ .stApp {{
52
+ background: url(data:image/{main_bg_ext};base64,{base64.b64encode(open(main_bg, "rb").read()).decode()});
53
+ background-size: cover
54
+ }}
55
+ </style>
56
+ """,
57
+ unsafe_allow_html=True
58
+ )