Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ if st.button("Generate Prediction", type="primary"):
|
|
| 76 |
|
| 77 |
# Apply custom threshold
|
| 78 |
prediction = 1 if prediction_proba >= classification_threshold else 0
|
| 79 |
-
|
| 80 |
if prediction == 1:
|
| 81 |
st.error(f"### ⚠️ CRITICAL: Engine Failure Likely\n**Probability of Failure:** {prediction_proba:.2%}")
|
| 82 |
st.write("Immediate maintenance inspection recommended to avoid service disruption.")
|
|
|
|
| 76 |
|
| 77 |
# Apply custom threshold
|
| 78 |
prediction = 1 if prediction_proba >= classification_threshold else 0
|
| 79 |
+
# using markdown heading syntax (###) to adjust font size on the UI:
|
| 80 |
if prediction == 1:
|
| 81 |
st.error(f"### ⚠️ CRITICAL: Engine Failure Likely\n**Probability of Failure:** {prediction_proba:.2%}")
|
| 82 |
st.write("Immediate maintenance inspection recommended to avoid service disruption.")
|