RajaThor commited on
Commit
675d389
·
verified ·
1 Parent(s): 24146fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -7,6 +7,7 @@ from PIL import Image
7
  import numpy as np
8
  import cv2
9
  import dlib
 
10
 
11
  # Get the current working directory
12
  current_directory = os.path.dirname(os.path.abspath(__file__))
@@ -400,9 +401,8 @@ def tour_guide_ui():
400
  with st.expander("Buttons"):
401
  st.write("Click on these buttons to perform actions like adding a person or recognizing a face.")
402
 
403
- # Streamlit interface for user authentication
404
  def authenticate_user_ui():
405
-
406
  c30, c31, c32 = st.columns([0.2, 0.1, 3])
407
  with c30:
408
  st.caption("")
@@ -415,6 +415,10 @@ def authenticate_user_ui():
415
  st.title("Insta's EYE")
416
  st.sidebar.title("Options")
417
 
 
 
 
 
418
  if st.session_state.auth_state["signed_in"]:
419
  st.sidebar.button("Sign Out", on_click=logout)
420
  st.title("Welcome!")
@@ -519,7 +523,6 @@ def main():
519
  elif option == "History":
520
  display_history(st.session_state.auth_state["user"].email)
521
 
522
-
523
  # Run the tour guide
524
  if __name__ == "__main__":
525
  authenticate_user_ui()
 
7
  import numpy as np
8
  import cv2
9
  import dlib
10
+ from streamlit import html
11
 
12
  # Get the current working directory
13
  current_directory = os.path.dirname(os.path.abspath(__file__))
 
401
  with st.expander("Buttons"):
402
  st.write("Click on these buttons to perform actions like adding a person or recognizing a face.")
403
 
 
404
  def authenticate_user_ui():
405
+ # Display logo and title
406
  c30, c31, c32 = st.columns([0.2, 0.1, 3])
407
  with c30:
408
  st.caption("")
 
415
  st.title("Insta's EYE")
416
  st.sidebar.title("Options")
417
 
418
+ # Add the meta tag to hide the status bar
419
+ meta_tag = """<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">"""
420
+ st.markdown(meta_tag, unsafe_allow_html=True)
421
+
422
  if st.session_state.auth_state["signed_in"]:
423
  st.sidebar.button("Sign Out", on_click=logout)
424
  st.title("Welcome!")
 
523
  elif option == "History":
524
  display_history(st.session_state.auth_state["user"].email)
525
 
 
526
  # Run the tour guide
527
  if __name__ == "__main__":
528
  authenticate_user_ui()