import gradio as gr def echo(input_text): return "你输入了:" + input_text iface = gr.Interface(fn=echo, inputs="text", outputs="text") iface.launch()