Manus AI commited on
Commit
eed1e34
Β·
1 Parent(s): e4f6173

Fix undefined variables and Gradio 6.0 compatibility

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -603,7 +603,7 @@ function triggerRouteSwap(idx) {
603
  """
604
 
605
  # ── Gradio layout ─────────────────────────────────────────────────────────────
606
- with gr.Blocks(css=CSS, head=HEAD, theme=gr.themes.Base(), fill_height=True) as demo:
607
 
608
  # ── Shared state ──────────────────────────────────────────────────────────
609
  papers_state = gr.State([])
@@ -726,7 +726,7 @@ with gr.Blocks(css=CSS, head=HEAD, theme=gr.themes.Base(), fill_height=True) as
726
  parse_panel = gr.HTML('<div class="panel" style="padding:18px"><p>No parsed document yet.</p></div>')
727
  ingest_summary = gr.Markdown("### Graph ingest status\n\nAwaiting paper selection.")
728
  ingest_payload = gr.JSON(label="Graph ingest payload", value={"status": "empty", "nodes": [], "edges": []})
729
- graph_html = render_graph_canvas_html({"status": "ok", "nodes": graph_nodes, "edges": graph_edges},title="Some title",height=780,)
730
  # ── Event wiring ──────────────────────────────────────────────────────────
731
  example_btn.click(fn=load_example, outputs=query)
732
 
@@ -767,4 +767,4 @@ with gr.Blocks(css=CSS, head=HEAD, theme=gr.themes.Base(), fill_height=True) as
767
  )
768
 
769
  if __name__ == "__main__":
770
- demo.launch()
 
603
  """
604
 
605
  # ── Gradio layout ─────────────────────────────────────────────────────────────
606
+ with gr.Blocks(fill_height=True) as demo:
607
 
608
  # ── Shared state ──────────────────────────────────────────────────────────
609
  papers_state = gr.State([])
 
726
  parse_panel = gr.HTML('<div class="panel" style="padding:18px"><p>No parsed document yet.</p></div>')
727
  ingest_summary = gr.Markdown("### Graph ingest status\n\nAwaiting paper selection.")
728
  ingest_payload = gr.JSON(label="Graph ingest payload", value={"status": "empty", "nodes": [], "edges": []})
729
+ graph_html = render_graph_canvas_html({"status": "ok", "nodes": NODES, "edges": EDGES},title="Some title",height=780,)
730
  # ── Event wiring ──────────────────────────────────────────────────────────
731
  example_btn.click(fn=load_example, outputs=query)
732
 
 
767
  )
768
 
769
  if __name__ == "__main__":
770
+ demo.launch(css=CSS, head=HEAD, theme=gr.themes.Base())