Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .streamlit/config.toml +1 -0
- app.py +3 -3
.streamlit/config.toml
CHANGED
|
@@ -3,3 +3,4 @@ base="light"
|
|
| 3 |
backgroundColor="white"
|
| 4 |
secondaryBackgroundColor="lavender"
|
| 5 |
codeBackgroundColor="powderBlue"
|
|
|
|
|
|
| 3 |
backgroundColor="white"
|
| 4 |
secondaryBackgroundColor="lavender"
|
| 5 |
codeBackgroundColor="powderBlue"
|
| 6 |
+
primaryColor = "#1f77ff"
|
app.py
CHANGED
|
@@ -80,15 +80,15 @@ if submit:
|
|
| 80 |
pred = (proba >= decision_threshold).astype(int)
|
| 81 |
|
| 82 |
st.divider()
|
| 83 |
-
st.subheader("
|
| 84 |
res_col1, res_col2 = st.columns([1, 2])
|
| 85 |
with res_col1:
|
| 86 |
if pred == 1:
|
| 87 |
confidence = proba[0] * 100
|
| 88 |
-
st.
|
| 89 |
else:
|
| 90 |
confidence = (1 - proba[0]) * 100
|
| 91 |
-
st.
|
| 92 |
with res_col2:
|
| 93 |
st.write(f"**Model Certainty:**")
|
| 94 |
st.progress(proba[0] if pred == 1 else 1 - proba[0], text=f"Confidence: {round(confidence, 2)}%")
|
|
|
|
| 80 |
pred = (proba >= decision_threshold).astype(int)
|
| 81 |
|
| 82 |
st.divider()
|
| 83 |
+
st.subheader("Maintenance:")
|
| 84 |
res_col1, res_col2 = st.columns([1, 2])
|
| 85 |
with res_col1:
|
| 86 |
if pred == 1:
|
| 87 |
confidence = proba[0] * 100
|
| 88 |
+
st.error("### Required")
|
| 89 |
else:
|
| 90 |
confidence = (1 - proba[0]) * 100
|
| 91 |
+
st.success("### Not-Required")
|
| 92 |
with res_col2:
|
| 93 |
st.write(f"**Model Certainty:**")
|
| 94 |
st.progress(proba[0] if pred == 1 else 1 - proba[0], text=f"Confidence: {round(confidence, 2)}%")
|