import gradio as gr def greet(name): return "Hello " + name + "!!" with gr.Blocks() as demo: txt = gr.Textbox(label="Input", lines=2) iface = gr.Interface( fn=greet, inputs="text", outputs="text", title="Title" ) gr.Markdown("## Text Examples") gr.Examples( ["hi", "Adam"], txt ) if __name__ == "__main__": demo.launch()