Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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: @
|
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 |
-
|
|
|
|
|
|
|
|
|
|
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)
|