Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.
dbbasic_ai_service_builder_ui.py · 747 bytes · 30 lines
| 1 | #!/usr/bin/env python3 |
| 2 | """ |
| 3 | Dbbasic Ai Service Builder UI Module |
| 4 | Provides UI data structures for the service |
| 5 | """ |
| 6 | |
| 7 | from dbbasic_unified_ui import get_master_layout |
| 8 | |
| 9 | def get_ai_services_dashboard(): |
| 10 | """Get dashboard UI for ai_services""" |
| 11 | return get_master_layout( |
| 12 | title='Ai Services', |
| 13 | service_name='ai_services', |
| 14 | content=[ |
| 15 | { |
| 16 | 'type': 'hero', |
| 17 | 'title': 'Ai Services', |
| 18 | 'subtitle': 'Service dashboard' |
| 19 | }, |
| 20 | { |
| 21 | 'type': 'div', |
| 22 | 'id': 'content', |
| 23 | 'children': [] |
| 24 | } |
| 25 | ] |
| 26 | ) |
| 27 | |
| 28 | def get_ai_services_ui(): |
| 29 | """Get default UI for ai_services""" |
| 30 | return get_ai_services_dashboard() |