Hi. I’m currently using streamlit chat component, st.chat_input. I used this because I want to build a chatbot. Is anyone know how to disable the chat_input after the user give an input. After that, when all the processes finish, enable the chat_input to let user insert input again.
I know how to disable the chat_input after user insert input, just use the callback parameter, on_submit. I want to know is there anyway to enable the chat_input ?
Hi @dataprofessor
I have the same question as @Yoong_Fu that I want to disable the chat_input after submitting and enable the chat_input after generating response from LLM.
I could not understand:
You can disable chat_input and enable it only after input is provided using:
Do you mean
input = st.chat_input(disabled=not input)
?
Is it possible to disable and enable the chat_input appropriately?