AMCENGINESPACE / app.py
Abhi10000's picture
Create app.py
252bfbd verified
raw
history blame contribute delete
466 Bytes
import streamlit as st
from model_predictor import predict_next_service
st.title("Predictive AMC Notifier")
equipment_id = st.text_input("Equipment ID")
last_service = st.date_input("Last Service Date")
if st.button("Predict"):
if equipment_id and last_service:
date = predict_next_service(str(last_service))
st.success(f"Next Predicted Service Date: {date}")
else:
st.warning("Please provide Equipment ID and Last Service Date.")