Spaces:
Runtime error
Runtime error
# Streamlit | |
import streamlit as st | |
def centered_text( | |
input_text, | |
mode = "h1", | |
): | |
st.markdown( | |
f"<{mode} style='text-align: center;'>{input_text}</{mode}>", | |
unsafe_allow_html = True | |
) |