-
Notifications
You must be signed in to change notification settings - Fork 4
/
navigate.py
55 lines (38 loc) · 1.5 KB
/
navigate.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
53
54
55
import streamlit as st
from util import GitHubStats, HomePage, Social, YoloforLogo, NewsQA
from Clustering.cluster_util import showData,Cluster
from ImageClassifier.classifier import model_card
from StockScreener.screener import StockScan
def navigator():
# Get the current page from the query parameters
page = "page"
if page in st.query_params.keys():
page = st.query_params["page"]
else: page = "home"
# Display content based on the selected menu item
if page == "home":
HomePage()
elif page == "Home":
HomePage()
# Page content based on the selected menu item
elif page == "yolologo":
st.title("🚀:rainbow[YOLO for Logo!] :sunglasses:")
YoloforLogo()
elif page == "newsqa":
st.title("📚:rainbow[News QA System using LLM] :sunglasses:")
NewsQA()
elif page == "image_classifer":
st.title("🚀:rainbow[Image Classification ] :sunglasses:")
model_card()
elif page == "clusterplay":
st.title("🐙:rainbow[Play with Clusters] :sunglasses:")
Cluster()
elif page == "stockscreener":
st.title("🚀:rainbow[Stock Screener]")
st.title("Range Breakout with Volume")
StockScan()
elif page == "Social":
Social(sidebarPos=False,heading="Social")
else:
st.subheader("Home Page")
st.write("Welcome to the Streamlit Portfolio. Use the sidebar to navigate.")