Spaces:
Runtime error
Runtime error
fix: move css to launch() per Gradio 6.x deprecation
Browse files
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"
|
| 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 |
)
|