Hello below is my code. when I entered input value then my page got refreshed and it’s showing a blank page. And I’m not getting the results that I’m expected. can anyone help with this?
import streamlit as st import SessionState def model_selection_exp(): pass def model_selection_exp1(): st.write("Hello World") state = SessionState.get(i="", button_sent=False) state.i = st.number_input("Enter number", 0, 100000000, 0) st.write(state.i) print(type(state.i)) button_sent = st.button("Show") st.write(button_sent) if button_sent: state.button_sent = True st.write("Sucessfuuly executed") model_selection_exp1()
Once i entered i saw blank page.