Spaces:
Sleeping
Sleeping
Manus AI commited on
Commit Β·
eed1e34
1
Parent(s): e4f6173
Fix undefined variables and Gradio 6.0 compatibility
Browse files
app.py
CHANGED
|
@@ -603,7 +603,7 @@ function triggerRouteSwap(idx) {
|
|
| 603 |
"""
|
| 604 |
|
| 605 |
# ββ Gradio layout βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 606 |
-
with gr.Blocks(
|
| 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":
|
| 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())
|