import streamlit as st def set_page_style(): """ Set custom CSS styling for the Streamlit app with light mode """ st.markdown(""" """, unsafe_allow_html=True) def display_metric(title, value, container=None): """ Display a metric in a nice formatted container Args: title (str): Title of the metric value (str/int/float): Value to display container (streamlit container, optional): Container to display the metric in """ target = container if container else st target.markdown(f"""
{value}
{title}
""", unsafe_allow_html=True) def create_card(content, container=None): """ Create a card-like container for content Args: content (callable): Function to call to render content inside the card container (streamlit container, optional): Container to place the card in """ target = container if container else st with target.container(): target.markdown('
', unsafe_allow_html=True) content() target.markdown('
', unsafe_allow_html=True)