harishsohani commited on
Commit
85822d0
·
verified ·
1 Parent(s): 0e06bcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -40,7 +40,8 @@ st.markdown("""
40
  # ---------------------------------------------------------
41
  st.title("🏖️ Predict Maintenance")
42
  st.write("The Predict Maintenance app is a tool to predict if an Engine needs any maintenance based on provided operating sensor parameters.")
43
- st.write("Fill in the details below and click **Predict** to see if the Engine needs maintenance to prevent from failure.")
 
44
 
45
 
46
 
@@ -61,7 +62,7 @@ def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valform
61
 
62
  #user_input = float(raw)
63
  user_input = st.number_input(
64
- label=f"{title} ({hint})",
65
  #min_value=minval,
66
  #max_value=maxval,
67
  value=defvalue,
@@ -92,7 +93,7 @@ with col_inputs:
92
  with col_left:
93
 
94
  rpm = formatted_number_input(
95
- "Lubricating oil pressure in kilopascals (kPa)",
96
  "50 to 2500",
97
  minval=50.0,
98
  maxval=2500.0,
@@ -103,7 +104,7 @@ with col_inputs:
103
 
104
 
105
  oil_pressure = formatted_number_input(
106
- "Lubricating oil pressure in kilopascals (kPa)",
107
  "0.001 to 10.0",
108
  minval=0.001,
109
  maxval=10.0,
@@ -114,7 +115,7 @@ with col_inputs:
114
 
115
 
116
  fuel_pressure = formatted_number_input(
117
- "Fuel Pressure in kilopascals (kPa)",
118
  "0.01 to 25.0",
119
  minval=0.01,
120
  maxval=25.0,
@@ -126,7 +127,7 @@ with col_inputs:
126
  # define inputs in left column
127
  with col_right:
128
  coolant_pressure = formatted_number_input(
129
- "Coolant Pressure in kilopascals (kPa)",
130
  "0.01 to 10.0",
131
  minval=0.01,
132
  maxval=10.0,
@@ -137,7 +138,7 @@ with col_inputs:
137
 
138
 
139
  lub_oil_temp = formatted_number_input(
140
- "Lubricating oil Temperature in degrees Celsius (°C)",
141
  "50.0 to 100.0",
142
  minval=50.0,
143
  maxval=100.0,
@@ -148,7 +149,7 @@ with col_inputs:
148
 
149
 
150
  coolant_temp = formatted_number_input(
151
- "Coolant Temperature in degrees Celsius (°C)",
152
  "50.0 to 200.0",
153
  minval=50.0,
154
  maxval=200.0,
 
40
  # ---------------------------------------------------------
41
  st.title("🏖️ Predict Maintenance")
42
  st.write("The Predict Maintenance app is a tool to predict if an Engine needs any maintenance based on provided operating sensor parameters.")
43
+ st.write("Fill in the details below and click **Check for Maintenance** to see if the Engine needs maintenance to prevent from failure.")
44
+ st.write("Suggested Ranges are based on the Range of Values model trained on.")
45
 
46
 
47
 
 
62
 
63
  #user_input = float(raw)
64
  user_input = st.number_input(
65
+ label=f"{title} (Suggested Range {hint})",
66
  #min_value=minval,
67
  #max_value=maxval,
68
  value=defvalue,
 
93
  with col_left:
94
 
95
  rpm = formatted_number_input(
96
+ "Lubricating oil pressure (kPa)",
97
  "50 to 2500",
98
  minval=50.0,
99
  maxval=2500.0,
 
104
 
105
 
106
  oil_pressure = formatted_number_input(
107
+ "Lubricating oil pressure (kPa)",
108
  "0.001 to 10.0",
109
  minval=0.001,
110
  maxval=10.0,
 
115
 
116
 
117
  fuel_pressure = formatted_number_input(
118
+ "Fuel Pressure (kPa)",
119
  "0.01 to 25.0",
120
  minval=0.01,
121
  maxval=25.0,
 
127
  # define inputs in left column
128
  with col_right:
129
  coolant_pressure = formatted_number_input(
130
+ "Coolant Pressure (kPa)",
131
  "0.01 to 10.0",
132
  minval=0.01,
133
  maxval=10.0,
 
138
 
139
 
140
  lub_oil_temp = formatted_number_input(
141
+ "Lubricating oil Temperature (°C)",
142
  "50.0 to 100.0",
143
  minval=50.0,
144
  maxval=100.0,
 
149
 
150
 
151
  coolant_temp = formatted_number_input(
152
+ "Coolant Temperature (°C)",
153
  "50.0 to 200.0",
154
  minval=50.0,
155
  maxval=200.0,