AMCENGINE / src /app.py
Abhi10000's picture
Rename src/streamlit_app.py to src/app.py
54bb264 verified
raw
history blame contribute delete
584 Bytes
import streamlit as st
from model_predictor import predict_next_service
st.set_page_config(page_title="Predictive AMC Notifier", page_icon="πŸ§ͺ")
st.title("πŸ§ͺ Predictive AMC Notification Engine")
equipment_id = st.text_input("Enter Equipment ID")
last_service = st.date_input("Select Last Service Date")
if st.button("Predict Next Service Date"):
if equipment_id and last_service:
predicted = predict_next_service(str(last_service))
st.success(f"βœ… Predicted Next AMC Service Date: **{predicted}**")
else:
st.warning("Please enter all fields.")