RajendrakumarPachaiappan commited on
Commit
3192b37
·
verified ·
1 Parent(s): 667f983

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -19,10 +19,6 @@ FEATURE_COLS = [
19
  # Caching Function to Load Model and Scaler
20
  @st.cache_resource
21
  def load_artifacts():
22
- """
23
- Downloads and loads the model and scaler from the Hugging Face Hub.
24
- The @st.cache_resource decorator ensures this function only runs once.
25
- """
26
  try:
27
  with st.spinner("Downloading and loading model artifacts..."):
28
  # Download and load the model
@@ -50,12 +46,10 @@ st.set_page_config(
50
 
51
  st.title("Predict Engine Condition")
52
  st.markdown(
53
- "Use the sliders below to input the current engine sensor readings and predict "
54
- "if the engine is running **NORMAL (0)** or requires **IMMEDIATE MAINTENANCE (1)**. "
55
- "This model uses a pre-trained Random Forest classifier."
56
  )
57
  st.markdown(
58
- "**Note:** The slider ranges are based on the minimum and maximum values observed in the training dataset"
59
  )
60
 
61
  if model is None or scaler is None:
 
19
  # Caching Function to Load Model and Scaler
20
  @st.cache_resource
21
  def load_artifacts():
 
 
 
 
22
  try:
23
  with st.spinner("Downloading and loading model artifacts..."):
24
  # Download and load the model
 
46
 
47
  st.title("Predict Engine Condition")
48
  st.markdown(
49
+ "This model forecasts potential engine failures, classifying the status as **Normal (0)** or requiring **Immediate Maintenance (1)**."
 
 
50
  )
51
  st.markdown(
52
+ "**Note:** Adjust the sliders below with current sensor readings to check the engine condition."
53
  )
54
 
55
  if model is None or scaler is None: