nihalaninihal commited on
Commit
af292c9
·
1 Parent(s): e09a415

Fix Gradio 6 deprecation warning: move theme/css out of Blocks constructor

Browse files

In 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.

Files changed (1) hide show
  1. app.py +1 -1
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, theme=SentinelTheme(), css=CUSTOM_CSS) as demo:
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)