csankaran3 commited on
Commit
dfcc852
·
verified ·
1 Parent(s): 1eca025

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -42,8 +42,11 @@ if st.button("Predict Engine Condition"):
42
  prediction_proba = model.predict_proba(input_data)[0, 1]
43
  prediction = (prediction_proba >= classification_threshold).astype(int)
44
  result = "Active" if prediction == 1 else "Faulty"
45
- if (result == "Active"):
46
- st.success(f"Engine condition prediction completed!.. The Engine condition is {result}.")
 
 
47
  else:
48
- st.error(f"Engine condition prediction completed!.. The Engine condition is {result}.")
49
-
 
 
42
  prediction_proba = model.predict_proba(input_data)[0, 1]
43
  prediction = (prediction_proba >= classification_threshold).astype(int)
44
  result = "Active" if prediction == 1 else "Faulty"
45
+ if result == "Active":
46
+ st.success(
47
+ f"Engine condition prediction completed!.. **The Engine condition is {result}.**"
48
+ )
49
  else:
50
+ st.error(
51
+ f"Engine condition prediction completed!.. **The Engine condition is {result}.**"
52
+ )