import gradio as gr def combine_inputs(title, content): # Create a simple HTML template with the inputs html = f"""

{title}

{content}

""" return html # Create the interface with gr.Blocks() as demo: gr.Markdown("# HTML Generator") with gr.Row(): title_input = gr.Textbox(label="Title", placeholder="Enter your title here") content_input = gr.Textbox(label="Content", placeholder="Enter your content here", lines=3) generate_btn = gr.Button("Generate HTML") output = gr.HTML(label="Generated HTML") generate_btn.click( fn=combine_inputs, inputs=[title_input, content_input], outputs=output ) demo.launch()