specimba commited on
Commit
a6d098c
·
verified ·
1 Parent(s): b8ae5d8

fix: move css to launch() per Gradio 6.x deprecation

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -602,7 +602,7 @@ def modal_health_handler():
602
  initial_operator_state = _default_operator_state()
603
  initial_regions = _dashboard_regions(scan=scan_file(None), operator_state=initial_operator_state)
604
 
605
- with gr.Blocks(title="NEXUS Visual Weaver", css=APP_CSS) as demo:
606
  active_run_state = gr.State(None)
607
  scan_state = gr.State(scan_file(None))
608
  operator_state = gr.State(initial_operator_state)
@@ -846,4 +846,5 @@ if __name__ == "__main__":
846
  server_name="0.0.0.0",
847
  server_port=int(os.environ.get("NEXUS_PORT", os.environ.get("PORT", "7860"))),
848
  quiet=True, mcp_server=True, ssr_mode=False,
 
849
  )
 
602
  initial_operator_state = _default_operator_state()
603
  initial_regions = _dashboard_regions(scan=scan_file(None), operator_state=initial_operator_state)
604
 
605
+ with gr.Blocks(title="NEXUS Visual Weaver") as demo:
606
  active_run_state = gr.State(None)
607
  scan_state = gr.State(scan_file(None))
608
  operator_state = gr.State(initial_operator_state)
 
846
  server_name="0.0.0.0",
847
  server_port=int(os.environ.get("NEXUS_PORT", os.environ.get("PORT", "7860"))),
848
  quiet=True, mcp_server=True, ssr_mode=False,
849
+ css=APP_CSS,
850
  )