Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -312,7 +312,7 @@ def predict_gradio(*values):
|
|
| 312 |
|
| 313 |
|
| 314 |
# ---------------------------------------------------------------------------
|
| 315 |
-
# CSS
|
| 316 |
# ---------------------------------------------------------------------------
|
| 317 |
|
| 318 |
custom_css = """
|
|
@@ -333,7 +333,7 @@ custom_css = """
|
|
| 333 |
# Gradio UI
|
| 334 |
# ---------------------------------------------------------------------------
|
| 335 |
|
| 336 |
-
with gr.Blocks(title="HCT Outcome Prediction Model"
|
| 337 |
gr.Markdown(
|
| 338 |
"""
|
| 339 |
# HCT Outcome Prediction Model
|
|
@@ -412,7 +412,7 @@ with gr.Blocks(title="HCT Outcome Prediction Model", css=custom_css) as demo:
|
|
| 412 |
headers=["Outcome", "Probability", "95% CI"],
|
| 413 |
label="",
|
| 414 |
row_count=(len(REPORTING_OUTCOMES), "dynamic"),
|
| 415 |
-
|
| 416 |
)
|
| 417 |
|
| 418 |
gr.Markdown("---")
|
|
@@ -470,4 +470,7 @@ with gr.Blocks(title="HCT Outcome Prediction Model", css=custom_css) as demo:
|
|
| 470 |
|
| 471 |
|
| 472 |
if __name__ == "__main__":
|
| 473 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
|
| 313 |
|
| 314 |
# ---------------------------------------------------------------------------
|
| 315 |
+
# CSS (passed to launch() in Gradio 6+)
|
| 316 |
# ---------------------------------------------------------------------------
|
| 317 |
|
| 318 |
custom_css = """
|
|
|
|
| 333 |
# Gradio UI
|
| 334 |
# ---------------------------------------------------------------------------
|
| 335 |
|
| 336 |
+
with gr.Blocks(title="HCT Outcome Prediction Model") as demo:
|
| 337 |
gr.Markdown(
|
| 338 |
"""
|
| 339 |
# HCT Outcome Prediction Model
|
|
|
|
| 412 |
headers=["Outcome", "Probability", "95% CI"],
|
| 413 |
label="",
|
| 414 |
row_count=(len(REPORTING_OUTCOMES), "dynamic"),
|
| 415 |
+
column_count=(3, "fixed"), # fixed: col_count → column_count (Gradio 6)
|
| 416 |
)
|
| 417 |
|
| 418 |
gr.Markdown("---")
|
|
|
|
| 470 |
|
| 471 |
|
| 472 |
if __name__ == "__main__":
|
| 473 |
+
demo.launch(
|
| 474 |
+
ssr_mode=False,
|
| 475 |
+
css=custom_css, # css moved to launch() in Gradio 6
|
| 476 |
+
)
|