AMCNOTIFY-2 / src /app.py
Abhi10000's picture
Update src/app.py
2006e65 verified
raw
history blame contribute delete
820 Bytes
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()