Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
@@ -1,13 +1,4 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
3 |
-
# Load and encode background image
|
4 |
-
def get_base64_bg(image_path):
|
5 |
-
with open(image_path, "rb") as img_file:
|
6 |
-
encoded = base64.b64encode(img_file.read()).decode()
|
7 |
-
return f"data:image/jpg;base64,{encoded}"
|
8 |
-
|
9 |
-
background_img = get_base64_bg("background.jpg")
|
10 |
-
|
11 |
# Inject custom CSS with background
|
12 |
st.markdown(
|
13 |
f"""
|
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
# Inject custom CSS with background
|
3 |
st.markdown(
|
4 |
f"""
|