When i entered input value - page got refreshed and showing as a blank page

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.

Hi @arjunko -

Is your code misformatted? Generally you wouldn’t put all of that in functions, and the pass statement is also throwing me off what you’re trying to do.

Best,
Randy