Saving the streamlit result values

Hey ,
my question is that ,how to save the values (like model-accuracy etc) and shows that value when some one click on “show results” button.
Below given code , when i click on “show” button it show empty result. kindly consult with me.
Code:

    lister = []
    def saver(input):
	lister.append(input)

    s = st.text_input('Type a name in the box below')
    saver(s)

    if st.button("show"):
	st.write(lister)