Spaces:
Sleeping
Sleeping
Arif
commited on
Commit
Β·
0e48bae
1
Parent(s):
49ea32a
Frontend is ready
Browse files- frontend/app.py +6 -8
- 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 |
-
|
| 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 |
-
|
| 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 |
-
|
| 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 |
-
|
| 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"):
|