yunuseduran commited on
Commit
2cbd0f9
·
verified ·
1 Parent(s): 8d9c11c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -71,7 +71,7 @@ def fail(footfall, atemp, selfLR, ClinLR, DoleLR, PID, outpressure, inpressure,
71
  prediction = pipe.predict(input_data)[0]
72
  return prediction
73
 
74
- st.title("İot Analizi :information: @Yed")
75
  st.write("Lütfen Sensör Verilerini Giriniz.")
76
  footfall = st.number_input("Footfall", 0, 10000)
77
  atemp = st.number_input("Atemp", 0, 100)
@@ -85,4 +85,8 @@ 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
- st.write("Sensör Durumu", pred)
 
 
 
 
 
71
  prediction = pipe.predict(input_data)[0]
72
  return prediction
73
 
74
+ st.title("İot Analizi :information: @dryed")
75
  st.write("Lütfen Sensör Verilerini Giriniz.")
76
  footfall = st.number_input("Footfall", 0, 10000)
77
  atemp = st.number_input("Atemp", 0, 100)
 
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
90
+ else:
91
+ result = 0
92
+ st.write("Predicted fail :information: ", result)