shivapriyasom commited on
Commit
3c51df3
·
verified ·
1 Parent(s): f4932ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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", css=custom_css) as demo:
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
- col_count=(3, "fixed"),
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(ssr_mode=False)
 
 
 
 
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
+ )