tcmhwd/bsi-mortality-demo
Remove login requirement for public access
Fix SSR+auth: set GRADIO_SSR_MODE=0 env var, revert to gradio 5.23.3
Downgrade sdk_version to 4.44.1 (fix SSR+auth conflict)
Pin gradio==4.44.1 to fix SSR+auth crash on HF Spaces
Remove ssr=False (not supported in this Gradio version)
Fix HF Spaces auth: add ssr=False to avoid SSR/auth conflict
Fix HF Spaces auth: call launch() at module level with auth param
Add login gate (admin/admin) — set REQUIRE_LOGIN=False to make public
Mode D: add _patch_imputers sklearn fix + 10 representative patient presets
Add Mode D: BCx/AST-only prediction for reference laboratories
Add models/bcx_only/species_list.json for Mode D
Add models/bcx_only/feature_spec.json for Mode D
Add models/bcx_only/recalibrator.joblib for Mode D
Add models/bcx_only/xgboost_bcx_pipeline.joblib for Mode D
Fix remaining Korean text in HEADER_MD table and Hospital 20 → B
UI: translate Korean text to English, add CCI auto-calc, SHAP/label fixes
Fix: TabM cached for rep patients; UI uses AST spec (adds microbiology features)
Add TabM live inference (tabm_preprocessor + _get_tabm + _tabm_predict)
Add live XGBoost SHAP for manual input (AST arm)
Add SimpleImputer _fill_dtype compat patch + relax sklearn/xgboost version pins
Pin exact sklearn==1.4.2 xgboost==2.0.3 to match training env
Pin scikit-learn>=1.4.0 to match training env (SimpleImputer _fill_dtype compat)
Add model binary: models/early/preprocessor.joblib
Add model binary: models/early/tabm_model.pt
Add model binary: models/ast_informed/xgboost_final_pipeline.joblib
Remove model binaries from .gitignore so HF API upload works
Add model file: models/early/preprocessor.joblib
Add model file: models/early/tabm_model.pt
Add model file: models/ast_informed/xgboost_final_pipeline.joblib
Lazy-load XGBoost model to fix persistent _XGB_AVAILABLE=False
Fix fill_patient: return plain values instead of gr.update() dicts
Fix feature range violations: CRP/WBC/PLT/Creatinine/Bilirubin/SBP/PR
Upgrade to gradio 5.23.3 for Python 3.13 compatibility
Fix Python 3.13 audioop compatibility (add pyaudioop)
Graceful fallback when model files not yet uploaded
Initial BSI mortality demo (code + data, binaries via API)
