Spaces:
Sleeping
Sleeping
Arif
commited on
Commit
Β·
49ea32a
1
Parent(s):
aa5cda2
updating
Browse files- frontend/app.py +9 -5
- 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.
|
| 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.
|
|
|
|
| 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.
|
|
|
|
| 40 |
|
| 41 |
st.divider()
|
| 42 |
|
|
@@ -50,7 +52,8 @@ with col3:
|
|
| 50 |
- Outlier detection
|
| 51 |
- Correlation analysis
|
| 52 |
""")
|
| 53 |
-
st.
|
|
|
|
| 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.
|
|
|
|
| 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 |
-
|
| 16 |
-
st.
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|