Spaces:
Sleeping
Sleeping
Download src/ui/__init__.py from FajarHidaa/HumanPlusX: direct link, hf CLI and curl.
- Browser
- Download file 2.7 kB
-
https://huggingface.co/spaces/FajarHidaa/HumanPlusX/resolve/main/src/ui/__init__.py
- Command line
-
hf download hf://spaces/FajarHidaa/HumanPlusX/src/ui/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/FajarHidaa/HumanPlusX/resolve/main/src/ui/__init__.py
2.7 kB
| """ | |
| Human+ UI Layer | |
| =============== | |
| Design system, CSS injection, reusable components, dan chart wrappers. | |
| Cara pakai: | |
| from ui.styles import inject_custom_css | |
| from ui.components import render_hero, render_biomarker_row | |
| from ui.chart_components import render_gauge_grid | |
| Modules: | |
| theme β Design tokens (warna, font, spacing, radius) | |
| styles β CSS injection via inject_custom_css() | |
| components β Reusable Streamlit widget functions | |
| chart_components β Plotly chart wrappers (gauge, bar, donut) | |
| """ | |
| # ββ CSS injection ββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| from ui.styles import inject_custom_css | |
| # ββ Design tokens ββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| from ui.theme import ( | |
| COLORS, | |
| FONTS, | |
| SPACE, | |
| RADIUS, | |
| SHADOWS, | |
| BIOMARKER_STATUS, | |
| PROTOCOL_SECTIONS, | |
| ) | |
| # ββ Component functions ββββββββββββββββββββββββββββββββββββββββββββββ | |
| from ui.components import ( | |
| render_hero, | |
| render_step_indicator, | |
| render_trust_badges, | |
| render_section_label, | |
| render_loading_steps, | |
| render_progress_bar, | |
| ANALYSIS_STEPS, | |
| PROTOCOL_STEPS, | |
| render_biomarker_row, | |
| render_biomarker_summary_banner, | |
| render_biomarker_chip, | |
| render_protocol_section, | |
| render_error_state, | |
| render_empty_state, | |
| render_info_card, | |
| render_success_banner, | |
| render_highlight_quote, | |
| render_footer, | |
| ) | |
| # ββ Chart wrappers βββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| from ui.chart_components import ( | |
| render_gauge_grid, | |
| render_biomarker_bar_chart, | |
| render_status_donut, | |
| ) | |
| __all__ = [ | |
| "inject_custom_css", | |
| "COLORS", "FONTS", "SPACE", "RADIUS", "SHADOWS", | |
| "BIOMARKER_STATUS", "PROTOCOL_SECTIONS", | |
| "render_hero", "render_step_indicator", "render_trust_badges", | |
| "render_section_label", | |
| "render_loading_steps", "render_progress_bar", | |
| "ANALYSIS_STEPS", "PROTOCOL_STEPS", | |
| "render_biomarker_row", "render_biomarker_summary_banner", "render_biomarker_chip", | |
| "render_protocol_section", | |
| "render_error_state", "render_empty_state", | |
| "render_info_card", "render_success_banner", "render_highlight_quote", | |
| "render_footer", | |
| "render_gauge_grid", "render_biomarker_bar_chart", "render_status_donut", | |
| ] | |