RajaThor commited on
Commit
1516ded
·
verified ·
1 Parent(s): aedca95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -232,11 +232,14 @@ def delete_person_ui():
232
  result = delete_person(name)
233
  st.success(result)
234
 
 
 
 
 
235
  # Streamlit interface for user authentication
236
  def authenticate_user_ui():
237
  st.title("Insta's EYE")
238
  st.sidebar.title("Options")
239
- display_tour_steps(steps)
240
 
241
  if st.session_state.auth_state["signed_in"]:
242
  st.sidebar.button("Sign Out", on_click=logout)
@@ -329,9 +332,11 @@ def display_tour_steps(steps):
329
  # Update the main function to include the new option
330
  def main():
331
  st.sidebar.title("Options")
332
- option = st.sidebar.radio("Select Option", ["Add Person", "Recognize Face", "Delete Person", "Recognize Face (Optimal)"])
333
 
334
- if option == "Add Person":
 
 
335
  add_person_ui()
336
  elif option == "Recognize Face":
337
  recognize_face_ui()
 
232
  result = delete_person(name)
233
  st.success(result)
234
 
235
+ def tour_guide_ui():
236
+ st.title("Tour Guide")
237
+ display_tour_steps(steps)
238
+
239
  # Streamlit interface for user authentication
240
  def authenticate_user_ui():
241
  st.title("Insta's EYE")
242
  st.sidebar.title("Options")
 
243
 
244
  if st.session_state.auth_state["signed_in"]:
245
  st.sidebar.button("Sign Out", on_click=logout)
 
332
  # Update the main function to include the new option
333
  def main():
334
  st.sidebar.title("Options")
335
+ option = st.sidebar.radio("Select Option", ["Tour Guide", "Add Person", "Recognize Face", "Delete Person", "Recognize Face (Optimal)"])
336
 
337
+ if option == "Tour Guide":
338
+ tour_guide_ui()
339
+ elif option == "Add Person":
340
  add_person_ui()
341
  elif option == "Recognize Face":
342
  recognize_face_ui()