-
Notifications
You must be signed in to change notification settings - Fork 0
/
streamlit-app.py
52 lines (49 loc) Β· 1.7 KB
/
streamlit-app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import streamlit as st
# Page configuration
st.set_page_config(
page_title="Custom HGRs",
page_icon="ποΈ",
initial_sidebar_state="expanded",
layout="wide",
)
# Define pages
pages = [
st.Page("home.py", title="Home", icon="π "),
st.Page("yolov8-classify.py", title="YOLOv8 Classify", icon="π"),
st.Page("yolov8-classify-photo.py", title="YOLOv8 Classify - Photo", icon="πΈ"),
st.Page("yolov8-classify-video.py", title="YOLOv8 Classify - Video", icon="ποΈ"),
st.Page(
"yolov8-classify-video-realtime.py",
title="YOLOv8 Classify - Video RTP",
icon="π₯",
),
st.Page("yolov8-classify-webcam.py", title="YOLOv8 Classify - Webcam", icon="π·"),
st.Page("yolov8-detect.py", title="YOLOv8 Detect", icon="π"),
st.Page("yolov8-detect-photo.py", title="YOLOv8 Detect - Photo", icon="πΈ"),
st.Page("yolov8-detect-video.py", title="YOLOv8 Detect - Video", icon="ποΈ"),
st.Page("yolov8-detect-webcam.py", title="YOLOv8 Detect - Webcam", icon="π·"),
st.Page("mediapipe-hgr-task.py", title="MP Gesture Recognition", icon="π"),
st.Page(
"mediapipe-hgr-task-photo.py", title="MP Gesture Recognition - Photo", icon="πΈ"
),
st.Page(
"mediapipe-hgr-task-video.py",
title="MP Gesture Recognition - Video",
icon="ποΈ",
),
st.Page(
"mediapipe-hgr-task-webcam.py",
title="MP Gesture Recognition - Webcam",
icon="π·",
),
]
# Create and run navigation
navigation = st.navigation(
{
"HOME": [pages[0]],
"YOLOv8 CLASSIFY": pages[1:6],
"YOLOv8 DETECT": pages[6:10],
"MEDIAPIPE (MP)": pages[10:14],
}
)
navigation.run()