I want to allow the user to fix the text-input box

hi ,
I want to allow the user to fix the text-input box, but I get an error because every time I edit it, the homepage automatically refreshes due to passing the value text_image [0] into.
I use streamlit, can you help me?