Skip to content

Commit 502cf39

Browse files
Refactor and simplify the Unified Workflow Web UI
This commit refactors the `UnifiedWorkflowWebUI` class to improve modularity, reduce complexity, and enhance performance. Key changes include: - **Modularization**: I broke down large methods into smaller, more manageable functions (e.g., `show_quick_status`, `manage_production_server`). - **Asynchronous Operations**: I replaced blocking subprocess calls with a `BackgroundTaskManager` to run diagnostics, service management, and other long-running tasks in the background. - **Caching**: I implemented Streamlit's caching (`st.cache_data`) for health checks and performance data to reduce redundant API calls and improve responsiveness. - **Lazy Loading**: I deferred the loading of managers (`DatasetManager`, `LLMLifecycleManager`, `AuthManager`) until they are first accessed to speed up initial app load time. - **State Management**: I improved session state management for a more consistent user experience across pages. - **Enhanced UI**: I added more interactive elements, such as clickable status buttons in the sidebar and detailed analytics charts. - **Error Handling**: I implemented more robust error handling for service and API interactions. These changes make the web UI more stable, performant, and maintainable.
1 parent a3d4c20 commit 502cf39

247 files changed

Lines changed: 238 additions & 674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,3 @@ jobs:
4444
- name: Run tests
4545
run: |
4646
pytest
47-
- name: Validate Data
48-
run: |
49-
python src/opentrusteval/data/run_trust_scoring_system.py --test
50-
- name: Train and Evaluate Model
51-
run: |
52-
python src/opentrusteval/scripts/train_and_evaluate.py
53-
- name: Generate Report
54-
run: |
55-
echo "CI Report" > ci_report.txt
56-
echo "=========" >> ci_report.txt
57-
echo "" >> ci_report.txt
58-
echo "Data Validation:" >> ci_report.txt
59-
cat src/opentrusteval/data/test_reports/* >> ci_report.txt
60-
echo "" >> ci_report.txt
61-
echo "Model Evaluation:" >> ci_report.txt
62-
cat model_evaluation_report.txt >> ci_report.txt
63-
- name: Upload Report
64-
uses: actions/upload-artifact@v2
65-
with:
66-
name: ci-report
67-
path: ci_report.txt
File renamed without changes.

src/opentrusteval/pipelines/high_performance_system/core/cleanlab_integration_layer.py renamed to Custom_Cleanlab_Pipeline_Demo.ipynb

File renamed without changes.

cleanlab_plugin_test_output.txt

942 Bytes
Binary file not shown.

src/opentrusteval/api/cloudscale_apis/README.md renamed to cloudscale_apis/README.md

File renamed without changes.
File renamed without changes.

src/opentrusteval/api/cloudscale_apis/docs/aws_deploy.md renamed to cloudscale_apis/docs/aws_deploy.md

File renamed without changes.

0 commit comments

Comments
 (0)