Hi,
I’m new to Streamlit and I have a question about using callback functions.
I want to create a prompt that calls a function “process_message” when on-submit
This codes works
def process_message():
st.write(“test”)
prompt = st.chat_input(" Ask your question here: ",on_submit=process_message)
As a next step, I want to access the text entered in my prompt within my callback function.
How can I do that?
Regards