import streamlit as st
import logging
def configure_page() -> None:
"""
Configures the Streamlit page.
"""
st.set_page_config(page_title="Text2Test",
layout="wide",
page_icon=":book:")
def apply_style():
st.markdown("""
""", unsafe_allow_html=True)
def breaks(n=1):
"""
Creates a line break.
"""
if n == 1:
st.markdown("
",unsafe_allow_html=True)
elif n == 2:
st.markdown("
",unsafe_allow_html=True)
elif n == 3:
st.markdown("
",unsafe_allow_html=True)
else:
st.markdown("
",unsafe_allow_html=True)
def debug_log(message):
"""Log debug messages and optionally show them in the app."""
logging.debug(message)
if logging.getLogger().level <= logging.DEBUG:
st.code(f"[DEBUG] {message}", language="text")