Spaces:
Running
Running
Commit ·
af292c9
1
Parent(s): e09a415
Fix Gradio 6 deprecation warning: move theme/css out of Blocks constructor
Browse filesIn Gradio 6, `theme` and `css` parameters were removed from the
`gr.Blocks()` constructor and must only be passed to `launch()`.
Passing them in both places caused a UserWarning on every import.
app.py
CHANGED
|
@@ -121,7 +121,7 @@ def inspect_state(seed):
|
|
| 121 |
# Gradio UI
|
| 122 |
# -------------------------------------------------------------------
|
| 123 |
|
| 124 |
-
with gr.Blocks(title="SentinelOps Arena", fill_width=True
|
| 125 |
|
| 126 |
# Header banner
|
| 127 |
gr.HTML(HEADER_HTML)
|
|
|
|
| 121 |
# Gradio UI
|
| 122 |
# -------------------------------------------------------------------
|
| 123 |
|
| 124 |
+
with gr.Blocks(title="SentinelOps Arena", fill_width=True) as demo:
|
| 125 |
|
| 126 |
# Header banner
|
| 127 |
gr.HTML(HEADER_HTML)
|