nix-tts / elements /component.py
rendchevi
initial commit
b546670
raw
history blame
216 Bytes
# 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
)