yunuseduran commited on
Commit
1643227
·
verified ·
1 Parent(s): ccc9087

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -75,9 +75,5 @@ temp = st.number_input("Temp", 0, 100)
75
 
76
  if st.button("Predict"):
77
  pred = fail(footfall, atemp, selfLR, ClinLR, DoleLR, PID, outpressure, inpressure, temp)
78
- if pred>=1:
79
- result ="1; Sensör çalışıyor, işe devam edebilir"
80
 
81
- else:
82
- result="0 Sensör arızalı, lütfen sensörü kontrol ediniz "
83
- st.write("Sensör Durumu", result)
 
75
 
76
  if st.button("Predict"):
77
  pred = fail(footfall, atemp, selfLR, ClinLR, DoleLR, PID, outpressure, inpressure, temp)
 
 
78
 
79
+ st.write("Sensör Durumu", abs(int(pred)))