Retyping in the text area reloads the page instead of outputting the text after button is clicked

Hi @azzi welcome to the community! :wave:

Have you tried to use st.form? It seems that you are looking for something like in this example?