yunuseduran commited on
Commit
7f29fdb
·
verified ·
1 Parent(s): b37bac5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -85,5 +85,9 @@ temp = st.number_input("Temp", 0, 100)
85
 
86
  if st.button("Predict"):
87
  pred = fail(footfall, atemp, selfLR, ClinLR, DoleLR, PID, outpressure, inpressure, temp)
88
-
89
- st.write("Sensör Durumu ", abs(int(pred)))
 
 
 
 
 
85
 
86
  if st.button("Predict"):
87
  pred = fail(footfall, atemp, selfLR, ClinLR, DoleLR, PID, outpressure, inpressure, temp)
88
+ if pred>=1:
89
+ result ="1 ; Sensör çalışıyor işe devam edebilirsiniz"
90
+ else:
91
+ result ="0 ; Sensör arızalı lütfen kontrol ediniz"
92
+
93
+ st.write("Sensör Durumu ", result)