Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here and please edit your post to include a runnable code snippet
You can make use of the value property, it would look something like this:
name_search = st.text_input(label="Enter a name to search", key="clean", value='')
# Check if user has entered a name
if lookup:
# ...
name_search = st.text_input("Enter a name to search", key="dirty", value='')