garvitsachdeva Claude Sonnet 4.6 commited on
Commit
c0c63ff
·
1 Parent(s): c0997b4

Fix theme/css: keep in Blocks(), not launch()

Browse files

Gradio 5.50 does not accept theme in launch(). The deprecation
warnings are for Gradio 6.0 -- both params stay in Blocks() for now.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -430,7 +430,7 @@ CSS = """
430
  footer { display: none !important; }
431
  """
432
 
433
- with gr.Blocks(title="SpindleFlow RL Training", css=CSS) as demo:
434
  with gr.Column(elem_classes="title-md"):
435
  gr.Markdown("# 🤖 SpindleFlow RL — Training Dashboard")
436
  with gr.Column(elem_classes="subtitle-md"):
@@ -462,4 +462,4 @@ with gr.Blocks(title="SpindleFlow RL Training", css=CSS) as demo:
462
  refresh_btn.click(fn=_get_state, outputs=[status_box, log_box])
463
  demo.load(fn=_get_state, outputs=[status_box, log_box])
464
 
465
- demo.launch(theme=gr.themes.Soft())
 
430
  footer { display: none !important; }
431
  """
432
 
433
+ with gr.Blocks(title="SpindleFlow RL Training", theme=gr.themes.Soft(), css=CSS) as demo:
434
  with gr.Column(elem_classes="title-md"):
435
  gr.Markdown("# 🤖 SpindleFlow RL — Training Dashboard")
436
  with gr.Column(elem_classes="subtitle-md"):
 
462
  refresh_btn.click(fn=_get_state, outputs=[status_box, log_box])
463
  demo.load(fn=_get_state, outputs=[status_box, log_box])
464
 
465
+ demo.launch()