Spaces:
Sleeping
Sleeping
devjas1
commited on
Commit
·
59c6133
1
Parent(s):
8dca6b4
(FEAT)[UI]: Add multi-tab interface for analysis modes
Browse files- Introduced Streamlit tabs for 'Standard Analysis', 'Model Comparison', and 'Performance Tracking'
- Integrated new tab components:
'render_comparison_tab' and 'render_performance_tab'
- Main function updated to render sidebar, input/result columns in 'tab1', comparison UI in 'tab2', and performance dashboard in 'tab3'
- Ensured new tabs are intitalized and connected to corresponding rendering functions
app.py
CHANGED
|
@@ -8,6 +8,8 @@ from modules.ui_components import (
|
|
| 8 |
render_sidebar,
|
| 9 |
render_results_column,
|
| 10 |
render_input_column,
|
|
|
|
|
|
|
| 11 |
load_css,
|
| 12 |
)
|
| 13 |
|
|
@@ -27,14 +29,28 @@ def main():
|
|
| 27 |
load_css("static/style.css")
|
| 28 |
init_session_state()
|
| 29 |
|
| 30 |
-
# Render UI components
|
| 31 |
render_sidebar()
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
if __name__ == "__main__":
|
|
|
|
| 8 |
render_sidebar,
|
| 9 |
render_results_column,
|
| 10 |
render_input_column,
|
| 11 |
+
render_comparison_tab,
|
| 12 |
+
render_performance_tab,
|
| 13 |
load_css,
|
| 14 |
)
|
| 15 |
|
|
|
|
| 29 |
load_css("static/style.css")
|
| 30 |
init_session_state()
|
| 31 |
|
|
|
|
| 32 |
render_sidebar()
|
| 33 |
|
| 34 |
+
# Create main tabs for difference analysis modes
|
| 35 |
+
tab1, tab2, tab3 = st.tabs(
|
| 36 |
+
["Standard Analysis", "Model Comparison", "Peformance Tracking"]
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
with tab1:
|
| 40 |
+
# Standard single-model analysis
|
| 41 |
+
col1, col2 = st.columns([1, 1.35], gap="small")
|
| 42 |
+
with col1:
|
| 43 |
+
render_input_column()
|
| 44 |
+
with col2:
|
| 45 |
+
render_results_column()
|
| 46 |
+
|
| 47 |
+
with tab2:
|
| 48 |
+
# Multi-model comparison interface
|
| 49 |
+
render_comparison_tab()
|
| 50 |
+
|
| 51 |
+
with tab3:
|
| 52 |
+
# Performance tracking interface
|
| 53 |
+
render_performance_tab()
|
| 54 |
|
| 55 |
|
| 56 |
if __name__ == "__main__":
|