Update app.py
Browse files
app.py
CHANGED
|
@@ -949,7 +949,7 @@ with gr.Blocks(title="HCT Outcome Prediction Model", css=custom_css) as demo:
|
|
| 949 |
# ── RUN ──────────────────────────────────────────────────────────
|
| 950 |
gr.Markdown("---")
|
| 951 |
wi_run_btn = gr.Button(
|
| 952 |
-
"
|
| 953 |
elem_classes="counterfactual-button",
|
| 954 |
size="lg",
|
| 955 |
)
|
|
@@ -962,13 +962,13 @@ with gr.Blocks(title="HCT Outcome Prediction Model", css=custom_css) as demo:
|
|
| 962 |
|
| 963 |
gr.Markdown("---")
|
| 964 |
# NEW: Collapsible icon arrays section
|
| 965 |
-
with gr.Accordion("
|
| 966 |
gr.Markdown("*Icon arrays show each outcome probability per 100 patients.*")
|
| 967 |
wi_icon_html = gr.HTML()
|
| 968 |
|
| 969 |
gr.Markdown("---")
|
| 970 |
# NEW: Collapsible SHAP section
|
| 971 |
-
with gr.Accordion("
|
| 972 |
gr.Markdown("### Baseline")
|
| 973 |
with gr.Row():
|
| 974 |
wi_shap_base = {o: gr.Plot(label=f"{o} — Baseline") for o in SHAP_ORDER}
|
|
|
|
| 949 |
# ── RUN ──────────────────────────────────────────────────────────
|
| 950 |
gr.Markdown("---")
|
| 951 |
wi_run_btn = gr.Button(
|
| 952 |
+
"Run Counterfactual Comparison",
|
| 953 |
elem_classes="counterfactual-button",
|
| 954 |
size="lg",
|
| 955 |
)
|
|
|
|
| 962 |
|
| 963 |
gr.Markdown("---")
|
| 964 |
# NEW: Collapsible icon arrays section
|
| 965 |
+
with gr.Accordion("Outcome Icon Arrays — Baseline vs Scenarios", open=False):
|
| 966 |
gr.Markdown("*Icon arrays show each outcome probability per 100 patients.*")
|
| 967 |
wi_icon_html = gr.HTML()
|
| 968 |
|
| 969 |
gr.Markdown("---")
|
| 970 |
# NEW: Collapsible SHAP section
|
| 971 |
+
with gr.Accordion("SHAP Feature Importance", open=False):
|
| 972 |
gr.Markdown("### Baseline")
|
| 973 |
with gr.Row():
|
| 974 |
wi_shap_base = {o: gr.Plot(label=f"{o} — Baseline") for o in SHAP_ORDER}
|