import gradio as gr demo = gr.Interface(lambda x,y:(x,y), ["textbox", "state"], ["textbox", "state"]) demo.launch()