Adityaganesh commited on
Commit
7ad1903
·
verified ·
1 Parent(s): fa25621

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +23 -0
Home.py CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def set_background(image_url):
4
+ st.markdown(
5
+ f"""
6
+ <style>
7
+ .stApp {{
8
+ background: url({image_url});
9
+ background-size: cover;
10
+ background-position: center;
11
+ background-repeat: no-repeat;
12
+ }}
13
+ </style>
14
+ """,
15
+ unsafe_allow_html=True
16
+ )
17
+
18
+ # Set background image
19
+ image_url = "https://huggingface.co/spaces/Adityaganesh/Cricket_data/raw/main/istockphoto-177427917-612x612.jpg"
20
+ set_background(image_url)
21
+
22
+ st.title("Cricket Data Analysis")
23
+ st.write("Now with a custom background image!")