Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,21 +31,21 @@ st.write("This app predicts the engine condition.")
|
|
| 31 |
st.write("Please enter the customer details below:")
|
| 32 |
|
| 33 |
# Collect user input
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
# Prepare input DataFrame
|
| 42 |
input_data = pd.DataFrame([{
|
| 43 |
-
'engine_rpm':
|
| 44 |
-
'lub_oil_pressure':
|
| 45 |
-
'fuel_pressure':
|
| 46 |
-
'coolant_pressure':
|
| 47 |
-
'lub_oil_temperature':
|
| 48 |
-
'coolant_temperature':
|
| 49 |
}])
|
| 50 |
|
| 51 |
# Classification threshold
|
|
|
|
| 31 |
st.write("Please enter the customer details below:")
|
| 32 |
|
| 33 |
# Collect user input
|
| 34 |
+
engine_rpm = st.number_input("Engine_RPM", min_value=0, value=700)
|
| 35 |
+
lub_oil_pressure = st.number_input("Pressure of the lubricating oil in the engine(kPa)", min_value=0, value=3)
|
| 36 |
+
fuel_pressure = st.number_input("Pressure at which fuel is supplied to the engine(kPa)", min_value=0, value=3)
|
| 37 |
+
coolant_pressure = st.number_input("Coolant_Pressure(kPa)", min_value=0, value=2)
|
| 38 |
+
lub_oil_temperature = st.number_input("Temperature of the lubricating oil (°C) ", value=75)
|
| 39 |
+
coolant_temperature = st.number_input("Coolant_Temperature (°C)", value=78)
|
| 40 |
|
| 41 |
# Prepare input DataFrame
|
| 42 |
input_data = pd.DataFrame([{
|
| 43 |
+
'engine_rpm': engine_rpm,
|
| 44 |
+
'lub_oil_pressure': lub_oil_pressure,
|
| 45 |
+
'fuel_pressure': fuel_pressure,
|
| 46 |
+
'coolant_pressure': coolant_pressure,
|
| 47 |
+
'lub_oil_temperature': lub_oil_temperature,
|
| 48 |
+
'coolant_temperature': coolant_temperature,
|
| 49 |
}])
|
| 50 |
|
| 51 |
# Classification threshold
|