Spaces:
Runtime error
Runtime error
Commit
·
d587d17
1
Parent(s):
0e18814
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,11 @@ def main():
|
|
136 |
# Check if the "Predict" button was clicked
|
137 |
if st.button("Predict"):
|
138 |
# Call the predict method of the MarkovChainClassifier instance
|
139 |
-
model.predict()
|
|
|
|
|
|
|
|
|
140 |
|
141 |
if __name__ == "__main__":
|
142 |
main()
|
|
|
136 |
# Check if the "Predict" button was clicked
|
137 |
if st.button("Predict"):
|
138 |
# Call the predict method of the MarkovChainClassifier instance
|
139 |
+
pred = model.predict()
|
140 |
+
if pred == T:
|
141 |
+
st.write("Prediction: Visitor is likely to convert into a customer.")
|
142 |
+
else:
|
143 |
+
st.write("Prediction: Visitor is unlikely to convert into a customer.")
|
144 |
|
145 |
if __name__ == "__main__":
|
146 |
main()
|