I am struggling with the same issue using streamlit version 1.28.2.
Running the development server on my machine works fine, but the deployment on GCP refreshes every 30s - 2 minutes, which results in entered data disappearing.
I tried using streamlit_autorefresh
as recommended here but it did not help.
GitHub link to project