import streamlit as st import base64 def set_background(image_file): with open(image_file, "rb") as img: encoded_image = base64.b64encode(img.read()).decode() st.markdown( f""" """, unsafe_allow_html=True )