Добавить кнопку в потоку
import streamlit as st
if st.button("Press me"):
st.text("The button with text Press me was clicked")
# Rest of the logic
Tense Tarantula
import streamlit as st
if st.button("Press me"):
st.text("The button with text Press me was clicked")
# Rest of the logic
if st.button('Say hello'):
st.write('Why hello there')
else:
st.write('Goodbye')