Documentation Index
Fetch the complete documentation index at: https://mintlify.com/OverCV/UC-Intel-Final/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The UI components API provides pre-built, reusable Streamlit components for building consistent and interactive ML training interfaces, including headers, sidebars, model cards, and experiment rows.Header Component
render_header()
Render the persistent header section shown on all pages. Contains app title, session selector, configuration status indicators, and session controls.- App title and branding
- Configuration status indicators (Dataset, Model, Training)
- Session selector dropdown (with past sessions)
- New session button
app/components/header.py:23
Configuration Status Indicators:
- ✅ Green checkmark = Step completed
- ⬜ Gray box = Step not completed
Sidebar Component
render_sidebar()
Render the persistent sidebar shown on all pages. Displays system resources, theme settings, and session actions.- Compute device information (CUDA/MPS/CPU)
- GPU memory usage
- System RAM usage
- CPU cores and threads
- Platform information
- Theme customization settings
- Delete session button
app/components/sidebar.py:18
Example:
Model Card Component
render_model_card(model, on_edit, on_delete, is_selected)
Render a single model card with actions.Model dictionary with id, name, model_type, created_at, and config
Callback function when edit button is clicked (receives model_id)
Callback function when delete button is clicked (receives model_id)
Whether this card is currently selected
bool - True if the card was clicked (for selection)
File reference: app/components/model_card.py:17
Model Card Visual Features:
- Model type icon (🔧 Custom CNN, 🎯 Transfer Learning, 🧪 Transformer)
- Model name and type
- Creation date
- Configuration summary subtitle
- Select, Edit, and Delete buttons
- Green border when selected
render_model_library(models, selected_id, on_select, on_edit, on_delete, cards_per_row)
Render the full model library as a grid of cards.List of model dictionaries
Currently selected model ID
Callback when a model is selected (receives model_id)
Callback when edit button is clicked (receives model_id)
Callback when delete button is clicked (receives model_id)
Number of cards to display per row
app/components/model_card.py:116
Experiment Row Component
render_experiment_row(experiment, models, trainings, callbacks…)
Render a single experiment row with status, metrics, and action buttons.Experiment dictionary with id, name, model_id, training_id, status, and metrics
List of available model configurations
List of available training configurations
Callback when experiment configuration changes (receives exp_id, updates)
Callback to delete experiment (receives exp_id)
Callback to start/resume training (receives exp_id)
Callback to pause training (receives exp_id)
Callback to stop training (receives exp_id)
Callback to view results (receives exp_id)
app/components/experiment_row.py:18
Experiment Status Icons:
- ⚪ Ready - Ready to start training
- 🔄 Training - Currently training
- ⏸️ Paused - Training paused
- ✅ Completed - Training finished successfully
- ❌ Failed - Training failed with error
- Model and training config dropdowns
- START TRAINING button
- Delete button
- Progress bars (epoch and batch)
- Live metrics (train loss, train acc, val loss, val acc)
- Delta indicators showing improvement
- Pause, Stop, and Save buttons
- Final metrics display
- Best epoch indicator
- Training duration
- View Results button
- Delete button
Theme Component
render_theme_settings()
Render theme customization settings in an expander.- Color pickers for primary, secondary, and background colors
- Preset themes (Soft Green, Soft Blue, Soft Pink, Soft Orange)
- Live preview with automatic page rerun
app/components/theme.py:18
Example with Custom Colors:
Utility Functions
get_compute_device()
Detect available compute device with detailed information.dict with keys:
type: str- Device type (“CUDA”, “MPS”, or “CPU”)name: str- Device nameavailable: bool- Whether device is available
app/components/utils.py:15
get_gpu_memory()
Get GPU memory information if available.str - Formatted memory string
File reference: app/components/utils.py:61
get_system_memory()
Get system RAM information.str - Formatted memory string (used/total GB)
File reference: app/components/utils.py:77
get_cpu_info()
Get CPU information including cores, threads, and usage.dict with keys:
cores: int- Physical CPU coresthreads: int- Logical processorsusage: float- Current CPU usage percentage
app/components/utils.py:88
get_platform_info()
Get platform/OS information.str - Platform string
File reference: app/components/utils.py:100
clear_session()
Clear all session state (workflow + cache) while preserving UI preferences. Saves the current session to disk before clearing.app/components/utils.py:124