ShanRaja commited on
Commit
d604bc7
·
verified ·
1 Parent(s): 3b0e5b4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +60 -6
app.py CHANGED
@@ -17,12 +17,66 @@ model = load_model()
17
 
18
  st.title("Engine Condition Prediction")
19
 
20
- engine_rpm = st.number_input("Engine rpm", min_value=0, step=100)
21
- lub_oil_pressure = st.number_input("Lub oil pressure", format="%.3f")
22
- fuel_pressure = st.number_input("Fuel pressure", format="%.3f")
23
- coolant_pressure = st.number_input("Coolant pressure", format="%.3f")
24
- lub_oil_temp = st.number_input("lub oil temp", format="%.2f")
25
- coolant_temp = st.number_input("Coolant temp", format="%.2f")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  if st.button("Predict"):
28
  input_df = pd.DataFrame(
 
17
 
18
  st.title("Engine Condition Prediction")
19
 
20
+ #engine_rpm = st.number_input("Engine rpm", min_value=0, step=100)
21
+ #lub_oil_pressure = st.number_input("Lub oil pressure", format="%.3f")
22
+ #fuel_pressure = st.number_input("Fuel pressure", format="%.3f")
23
+ #coolant_pressure = st.number_input("Coolant pressure", format="%.3f")
24
+ #lub_oil_temp = st.number_input("lub oil temp", format="%.2f")
25
+ #coolant_temp = st.number_input("Coolant temp", format="%.2f")
26
+
27
+ engine_rpm = st.number_input(
28
+ "Engine RPM",
29
+ min_value=50,
30
+ max_value=2250,
31
+ value=791,
32
+ step=50
33
+ )
34
+
35
+ lub_oil_pressure = st.number_input(
36
+ "Lub Oil Pressure (bar)",
37
+ min_value=0.0,
38
+ max_value=8.0,
39
+ value=3.3,
40
+ step=0.1,
41
+ format="%.3f"
42
+ )
43
+
44
+ fuel_pressure = st.number_input(
45
+ "Fuel Pressure (bar)",
46
+ min_value=0.0,
47
+ max_value=22.0,
48
+ value=6.66,
49
+ step=0.1,
50
+ format="%.3f"
51
+ )
52
+
53
+ coolant_pressure = st.number_input(
54
+ "Coolant Pressure (bar)",
55
+ min_value=0.0,
56
+ max_value=8.0,
57
+ value=2.33,
58
+ step=0.1,
59
+ format="%.3f"
60
+ )
61
+
62
+ lub_oil_temp = st.number_input(
63
+ "Lub Oil Temp (°C)",
64
+ min_value=70.0,
65
+ max_value=90.0,
66
+ value=77.6,
67
+ step=0.5,
68
+ format="%.2f"
69
+ )
70
+
71
+ coolant_temp = st.number_input(
72
+ "Coolant Temp (°C)",
73
+ min_value=60.0,
74
+ max_value=200.0,
75
+ value=78.4,
76
+ step=0.5,
77
+ format="%.2f"
78
+ )
79
+
80
 
81
  if st.button("Predict"):
82
  input_df = pd.DataFrame(