import base64 with open("ENTER YOUR IMAGE", "rb") as file: imagen = base64.b64encode(file.read()).decode() st.markdown(f""" <style> .stApp {{ background-image: url("data:image/png;base64,{imagen}"); background-size: cover; background-position: center; }} </style> """, unsafe_allow_html=True)
No hay comentarios:
Publicar un comentario