import gradio as gr
# Define a simple "Hello World" function
def greet(name):
"""Return html with name and an image"""
html = f"""Hello {name}
"""
return html
with gr.Blocks() as demo:
name = gr.Textbox(label="Name")
output = gr.HTML(label="Output Box")
greet_btn = gr.Button("Greet")
greet_btn.click(fn=greet, inputs=name, outputs=output)
demo.launch()