| import gradio as gr |
|
|
| |
| def submit_form(name, email, company, message): |
| |
| return f"Thank you, {name} from {company}! Your message has been sent." |
|
|
| |
| with gr.Blocks() as demo: |
| |
| gr.Markdown("# Welcome to Our SaaS Platform") |
| gr.Markdown("## Contact Us for More Information") |
|
|
| |
| with gr.Row(): |
| with gr.Column(): |
| name = gr.Textbox(label="Name", placeholder="Enter your name") |
| email = gr.Textbox(label="Email", placeholder="Enter your email") |
| company = gr.Textbox(label="Company", placeholder="Enter your company name") |
| message = gr.Textbox(label="Message", placeholder="Enter your message", lines=4) |
| submit_btn = gr.Button("Submit") |
|
|
| with gr.Column(): |
| |
| gr.Markdown("### About Us") |
| gr.Markdown("We are a leading SaaS company providing innovative solutions to businesses of all sizes.") |
| gr.Markdown("### Features") |
| gr.Markdown("- Feature 1: Description of feature 1") |
| gr.Markdown("- Feature 2: Description of feature 2") |
| gr.Markdown("- Feature 3: Description of feature 3") |
|
|
| |
| submit_btn.click(fn=submit_form, inputs=[name, email, company, message], outputs=gr.Textbox(label="Confirmation")) |
|
|
| |
| demo.launch(show_error=True) |