import gradio as gr def autocomplete(input): return input iface = gr.Interface( fn=autocomplete, inputs=gr.Textbox(lines=2, placeholder="Hello 👋", label="Input Sentence"), outputs=gr.Markdown(), title="Live typing bug test", live=True, # Set live to True for real-time feedback allow_flagging="never", # Disable flagging ) iface.launch()