create streamlit application with a button, the button text can be "test" but text needs to be aligned to the left side in the button
To upload files, please first save the app
import streamlit as st
# Custom CSS to align button text to the left
st.markdown("""
<style>
div.stButton > button {
text-align: left !important;
display: flex !important;
align-items: center !important;
justify-content: flex-start !important;
}
</style>
""", unsafe_allow_html=True)
# Create the button
st.button("test")
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?