I know the onchange function for textinput. as you see, following code. st.text only changes when I finish my input and clicked somewhere else. I want st.text change with text_input on time.
import streamlit as st
if "input" not in st.session_state:
st.session_state.input = ""
def input_callback():
st.session_state.input = st.session_state.my_input
user_input = st.text_input("input some :", key="my_input",on_change=input_callback,args=None)
st.text("your input is : " + st.session_state.my_input)
st.text("your input is: " + st.session_state.input)