Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

add a function to a button

if st.button('add'):
    result = add(1, 2)
    st.write('result: %s' % result)
Source by discuss.streamlit.io #
 
PREVIOUS NEXT
Tagged: #add #function #button
ADD COMMENT
Topic
Name
6+7 =