Arif commited on
Commit
0e48bae
Β·
1 Parent(s): 49ea32a

Frontend is ready

Browse files
Files changed (2) hide show
  1. frontend/app.py +6 -8
  2. frontend/components/sidebar.py +0 -20
frontend/app.py CHANGED
@@ -27,8 +27,7 @@ with col1:
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,8 +36,7 @@ with col2:
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,8 +50,7 @@ with col3:
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,8 +59,7 @@ with col4:
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
 
@@ -73,4 +69,6 @@ st.info("""
73
  2. **Preview** - Review your data and statistics
74
  3. **Analyze** - Run analysis and get insights
75
  4. **Chat** - Ask follow-up questions to the AI
 
 
76
  """)
 
27
  - Get AI-powered insights
28
  - Real-time responses from LLM
29
  """)
30
+ st.markdown("[πŸ’¬ Go to Chat](pages/01_Chat.py)")
 
31
 
32
  with col2:
33
  st.subheader("πŸ“ Upload Data")
 
36
  - Preview your data
37
  - View statistics
38
  """)
39
+ st.markdown("[πŸ“ Upload Data](pages/02_Upload_Data.py)")
 
40
 
41
  st.divider()
42
 
 
50
  - Outlier detection
51
  - Correlation analysis
52
  """)
53
+ st.markdown("[πŸ“Š Run Analysis](pages/03_Analysis.py)")
 
54
 
55
  with col4:
56
  st.subheader("πŸ₯ System Status")
 
59
  - View LLM model info
60
  - Monitor system status
61
  """)
62
+ st.markdown("[πŸ₯ Check Status](pages/04_Health_Check.py)")
 
63
 
64
  st.divider()
65
 
 
69
  2. **Preview** - Review your data and statistics
70
  3. **Analyze** - Run analysis and get insights
71
  4. **Chat** - Ask follow-up questions to the AI
72
+
73
+ **Navigation**: Use the pages listed above or check the pages folder dropdown in the sidebar!
74
  """)
frontend/components/sidebar.py CHANGED
@@ -10,26 +10,6 @@ def render_sidebar():
10
 
11
  st.divider()
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
-
33
  # Backend Status
34
  st.subheader("Backend Status")
35
  if st.button("πŸ”„ Check Status"):
 
10
 
11
  st.divider()
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  # Backend Status
14
  st.subheader("Backend Status")
15
  if st.button("πŸ”„ Check Status"):