How to clear input field after hitting Enter in streamlit?
Publish date: 2023-12-27I have a streamlit app where I want to get user input and use it later. However, I also want to clear the input field as soon as the user hits Enter. I looked online and it seems I need to pass a callback function to text_input but I can't make it work. I tried a couple ...