Update app.py
Browse files
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
|
| 46 |
-
st.success(
|
|
|
|
|
|
|
| 47 |
else:
|
| 48 |
-
st.error(
|
| 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 |
+
)
|