Spaces:
Paused
Paused
Commit ·
c0c63ff
1
Parent(s): c0997b4
Fix theme/css: keep in Blocks(), not launch()
Browse filesGradio 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>
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(
|
|
|
|
| 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()
|