File size: 216 Bytes
b546670
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
# 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
    )