RajaThor commited on
Commit
ebcad66
·
verified ·
1 Parent(s): 9303e93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -1
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__))
@@ -294,5 +295,41 @@ def main():
294
  elif option == "Recognize Face (Optimal)":
295
  recognize_face_optimal_ui()
296
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
  if __name__ == "__main__":
298
- authenticate_user_ui()
 
 
7
  import numpy as np
8
  import cv2
9
  import dlib
10
+ from streamlit_tour import st_tour
11
 
12
  # Get the current working directory
13
  current_directory = os.path.dirname(os.path.abspath(__file__))
 
295
  elif option == "Recognize Face (Optimal)":
296
  recognize_face_optimal_ui()
297
 
298
+ # Define tour steps
299
+ steps = [
300
+ {
301
+ "element": "h1",
302
+ "title": "Welcome to Insta's EYE",
303
+ "content": "This is a tour guide to help you navigate through the application.",
304
+ },
305
+ {
306
+ "element": '[aria-label="Select Option"]',
307
+ "title": "Options Sidebar",
308
+ "content": "Here you can select different options such as adding a person, recognizing a face, deleting a person, or recognizing a face with optimal identification.",
309
+ },
310
+ {
311
+ "element": "div[class='element-container']",
312
+ "title": "Main Interface",
313
+ "content": "This is where the main functionality of the application is displayed.",
314
+ },
315
+ {
316
+ "element": "[data-testid='stFileUploader']",
317
+ "title": "Upload Image",
318
+ "content": "You can upload an image here for face recognition or adding a person.",
319
+ },
320
+ {
321
+ "element": "[data-testid='stTextInput']",
322
+ "title": "Text Input",
323
+ "content": "Enter text here such as the person's name or Instagram handle.",
324
+ },
325
+ {
326
+ "element": "[data-testid='stButton']",
327
+ "title": "Buttons",
328
+ "content": "Click on these buttons to perform actions like adding a person or recognizing a face.",
329
+ },
330
+ ]
331
+
332
+ # Run the tour guide
333
  if __name__ == "__main__":
334
+ st_tour(steps)
335
+ authenticate_user_ui()