princeml commited on
Commit
e0e305b
·
1 Parent(s): 69e088e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def generate_prediction(input_array):
16
  def main():
17
  # Face Analysis Application #
18
  st.title("Online Food Order Prediction")
19
- activiteis = ["Home", "Prediction"]
20
  choice = st.sidebar.selectbox("Select Activity", activiteis)
21
 
22
  if choice == "Home":
@@ -66,7 +66,7 @@ def main():
66
  prediction = generate_prediction(np.array([[age, income, family_size, pin, Gender, Review, Marital_status, occupation, education]]))
67
 
68
  # Show the prediction
69
- st.write("Prediction:", prediction)
70
 
71
  elif choice == "About":
72
  st.subheader("About this app")
 
16
  def main():
17
  # Face Analysis Application #
18
  st.title("Online Food Order Prediction")
19
+ activiteis = ["Home", "Prediction","About"]
20
  choice = st.sidebar.selectbox("Select Activity", activiteis)
21
 
22
  if choice == "Home":
 
66
  prediction = generate_prediction(np.array([[age, income, family_size, pin, Gender, Review, Marital_status, occupation, education]]))
67
 
68
  # Show the prediction
69
+ st.write("Prediction:", prediction[1][1])
70
 
71
  elif choice == "About":
72
  st.subheader("About this app")