Welcome to the community, Sudipta! Thanks for sharing your question and code snippet—this is a common point of confusion with Streamlit forms. The issue is that widgets inside an st.form only send their values to the backend when the form is submitted.