Arif commited on
Commit
49ea32a
Β·
1 Parent(s): aa5cda2
Files changed (2) hide show
  1. frontend/app.py +9 -5
  2. frontend/components/sidebar.py +15 -5
frontend/app.py CHANGED
@@ -13,7 +13,7 @@ st.set_page_config(
13
  render_sidebar()
14
 
15
  st.title("πŸ€– LLM Data Analyzer")
16
- st.subtitle("Advanced data analysis with AI assistance")
17
 
18
  st.divider()
19
 
@@ -27,7 +27,8 @@ with col1:
27
  - Get AI-powered insights
28
  - Real-time responses from LLM
29
  """)
30
- st.page_link("pages/01_Chat.py", label="Go to Chat", icon="πŸ’¬")
 
31
 
32
  with col2:
33
  st.subheader("πŸ“ Upload Data")
@@ -36,7 +37,8 @@ with col2:
36
  - Preview your data
37
  - View statistics
38
  """)
39
- st.page_link("pages/02_Upload_Data.py", label="Upload Data", icon="πŸ“")
 
40
 
41
  st.divider()
42
 
@@ -50,7 +52,8 @@ with col3:
50
  - Outlier detection
51
  - Correlation analysis
52
  """)
53
- st.page_link("pages/03_Analysis.py", label="Run Analysis", icon="πŸ“Š")
 
54
 
55
  with col4:
56
  st.subheader("πŸ₯ System Status")
@@ -59,7 +62,8 @@ with col4:
59
  - View LLM model info
60
  - Monitor system status
61
  """)
62
- st.page_link("pages/04_Health_Check.py", label="Check Status", icon="πŸ₯")
 
63
 
64
  st.divider()
65
 
 
13
  render_sidebar()
14
 
15
  st.title("πŸ€– LLM Data Analyzer")
16
+ st.write("*Advanced data analysis with AI assistance*")
17
 
18
  st.divider()
19
 
 
27
  - Get AI-powered insights
28
  - Real-time responses from LLM
29
  """)
30
+ if st.button("Go to Chat", key="chat_btn"):
31
+ st.switch_page("pages/01_Chat.py")
32
 
33
  with col2:
34
  st.subheader("πŸ“ Upload Data")
 
37
  - Preview your data
38
  - View statistics
39
  """)
40
+ if st.button("Upload Data", key="upload_btn"):
41
+ st.switch_page("pages/02_Upload_Data.py")
42
 
43
  st.divider()
44
 
 
52
  - Outlier detection
53
  - Correlation analysis
54
  """)
55
+ if st.button("Run Analysis", key="analysis_btn"):
56
+ st.switch_page("pages/03_Analysis.py")
57
 
58
  with col4:
59
  st.subheader("πŸ₯ System Status")
 
62
  - View LLM model info
63
  - Monitor system status
64
  """)
65
+ if st.button("Check Status", key="status_btn"):
66
+ st.switch_page("pages/04_Health_Check.py")
67
 
68
  st.divider()
69
 
frontend/components/sidebar.py CHANGED
@@ -12,11 +12,21 @@ def render_sidebar():
12
 
13
  # Navigation
14
  st.subheader("Navigation")
15
- st.page_link("app.py", label="🏠 Home", icon="🏠")
16
- st.page_link("pages/01_Chat.py", label="πŸ’¬ Chat", icon="πŸ’¬")
17
- st.page_link("pages/02_Upload_Data.py", label="πŸ“ Upload Data", icon="πŸ“")
18
- st.page_link("pages/03_Analysis.py", label="πŸ“Š Analysis", icon="πŸ“Š")
19
- st.page_link("pages/04_Health_Check.py", label="πŸ₯ Health Check", icon="πŸ₯")
 
 
 
 
 
 
 
 
 
 
20
 
21
  st.divider()
22
 
 
12
 
13
  # Navigation
14
  st.subheader("Navigation")
15
+
16
+ if st.button("🏠 Home", use_container_width=True):
17
+ st.switch_page("app.py")
18
+
19
+ if st.button("πŸ’¬ Chat", use_container_width=True):
20
+ st.switch_page("pages/01_Chat.py")
21
+
22
+ if st.button("πŸ“ Upload Data", use_container_width=True):
23
+ st.switch_page("pages/02_Upload_Data.py")
24
+
25
+ if st.button("πŸ“Š Analysis", use_container_width=True):
26
+ st.switch_page("pages/03_Analysis.py")
27
+
28
+ if st.button("πŸ₯ Health Check", use_container_width=True):
29
+ st.switch_page("pages/04_Health_Check.py")
30
 
31
  st.divider()
32