tam3222 commited on
Commit
7ea8948
·
verified ·
1 Parent(s): 91d4671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
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
- 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
 
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