Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| def send_notification(name, amc_date): | |
| return f"Hello {name}, your AMC is due on {amc_date}. Please renew to avoid service interruption." | |
| with gr.Blocks() as demo: | |
| gr.Markdown(""" | |
| # π AMC Notification Engine | |
| π― **Business Objectives** | |
| - π§ Reduce unplanned equipment failure by 40% | |
| - π Improve AMC renewals via proactive reminders | |
| - ποΈ Enable centralized notification across all devices | |
| """) | |
| with gr.Row(): | |
| name = gr.Textbox(label="Customer Name", placeholder="Enter customer name") | |
| amc_date = gr.Textbox(label="AMC Due Date", placeholder="YYYY-MM-DD") | |
| notify_btn = gr.Button("Send Notification") | |
| output = gr.Textbox(label="Notification Message") | |
| notify_btn.click(send_notification, inputs=[name, amc_date], outputs=output) | |
| demo.launch() | |