mainak555 commited on
Commit
bd565bf
·
verified ·
1 Parent(s): d5cedda

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +1 -0
  2. 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("Prediction:")
84
  res_col1, res_col2 = st.columns([1, 2])
85
  with res_col1:
86
  if pred == 1:
87
  confidence = proba[0] * 100
88
- st.success("### YES")
89
  else:
90
  confidence = (1 - proba[0]) * 100
91
- st.error("### NO")
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)}%")