import gradio as gr def echo(name): return "This is a test"; demo = gr.Interface(fn=echo, inputs="text", outputs="text") demo.launch()