-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
60 lines (52 loc) · 1.79 KB
/
app.py
File metadata and controls
60 lines (52 loc) · 1.79 KB
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
56
57
58
59
60
"""
Main Streamlit application for Funding Intelligence RAG
"""
import streamlit as st
from config.settings import APP_CONFIG
from views.home import home_page
from views.funding import funding_page
from views.opensource import opensource_page
from views.huggingface import huggingface_page
from views.hackernews import hackernews_page
from views.research import research_page
from views.mongodb import mongodb_page
def main():
"""Main application entry point"""
# Configure Streamlit page settings
st.set_page_config(
page_title=APP_CONFIG['page_title'],
page_icon=APP_CONFIG['page_icon'],
layout=APP_CONFIG['layout'],
initial_sidebar_state='expanded' # Changed to show sidebar
)
# Sidebar navigation
with st.sidebar:
st.markdown("# 🔮 Navigation")
st.markdown("---")
# Navigation options with radio buttons for better UX
page = st.radio(
"Choose a page:",
["🏠 Home", "💰 Funding", "🔓 Open Source", "🤗 Hugging Face", "📰 Hacker News", "🔬 Research", "📊 MongoDB"],
index=0,
label_visibility="collapsed"
)
st.markdown("---")
st.markdown("### About")
st.markdown("**Krystal Ball Z** - Your AI-powered funding intelligence platform")
# Route to appropriate page
if page == "🏠 Home":
home_page()
elif page == "💰 Funding":
funding_page()
elif page == "🔓 Open Source":
opensource_page()
elif page == "🤗 Hugging Face":
huggingface_page()
elif page == "📰 Hacker News":
hackernews_page()
elif page == "🔬 Research":
research_page()
elif page == "📊 MongoDB":
mongodb_page()
if __name__ == "__main__":
main()