Spaces:
Sleeping
Sleeping
File size: 820 Bytes
3e8b04d 8af8b2e dd7098d 8af8b2e dd7098d 2006e65 256d7e9 2006e65 8af8b2e dd7098d 3e8b04d dd7098d 3e8b04d dd7098d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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()
|