Spaces:
Sleeping
Sleeping
Download src/pages/__init__.py from FajarHidaa/HumanPlusX: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/spaces/FajarHidaa/HumanPlusX/resolve/main/src/pages/__init__.py
- Command line
-
hf download hf://spaces/FajarHidaa/HumanPlusX/src/pages/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/FajarHidaa/HumanPlusX/resolve/main/src/pages/__init__.py
1.16 kB
| """ | |
| Human+ Page Modules | |
| =================== | |
| Setiap file adalah satu step dalam 3-step user flow. | |
| Dipanggil dari streamlit_app.py berdasarkan st.session_state.step. | |
| Flow: | |
| step 1 β pages/upload.py β Upload PDF lab | |
| step 2 β pages/analysis.py β AI analysis + biomarker dashboard | |
| step 3 β pages/protocol.py β Protocol generation + PDF download | |
| Cara pakai (dari streamlit_app.py): | |
| from pages.upload import render_upload_page | |
| from pages.analysis import render_analysis_page | |
| from pages.protocol import render_protocol_page | |
| Session state yang digunakan antar page: | |
| st.session_state.step β int: current step (1|2|3) | |
| st.session_state.uploaded_pdf_bytes β bytes | None | |
| st.session_state.pdf_filename β str | None | |
| st.session_state.extracted_biomarkers β list[dict] | None | |
| st.session_state.generated_protocol β dict | None | |
| """ | |
| from pages.upload import render_upload_page | |
| from pages.analysis import render_analysis_page | |
| from pages.protocol import render_protocol_page | |
| __all__ = [ | |
| "render_upload_page", | |
| "render_analysis_page", | |
| "render_protocol_page", | |
| ] | |