Spaces:
Running
Running
Commit ·
97eb274
1
Parent(s): dc29dcc
agentid
Browse files
app.py
CHANGED
|
@@ -564,8 +564,8 @@ with gr.Blocks(title="HiCoTraj Demo", theme=gr.themes.Soft()) as app:
|
|
| 564 |
gr.Markdown("## HiCoTraj — Trajectory Visualization & Hierarchical CoT Demo")
|
| 565 |
gr.Markdown("*Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory* · ACM SIGSPATIAL GeoGenAgent 2025")
|
| 566 |
gr.Markdown("""
|
| 567 |
-
**Dataset:** NUMOSIM
|
| 568 |
-
>
|
| 569 |
""")
|
| 570 |
|
| 571 |
gr.Markdown("### Select Agent")
|
|
@@ -596,15 +596,19 @@ with gr.Blocks(title="HiCoTraj Demo", theme=gr.themes.Soft()) as app:
|
|
| 596 |
|
| 597 |
def on_agent_click(agent_id):
|
| 598 |
cards_html = build_agent_cards(agent_id)
|
| 599 |
-
map_html, summary, raw_text, chain_html, step, btn = on_select_reset(agent_id)
|
| 600 |
return cards_html, map_html, summary, raw_text, chain_html, step, btn
|
| 601 |
|
| 602 |
agent_hidden.change(
|
| 603 |
fn=on_agent_click, inputs=agent_hidden,
|
| 604 |
outputs=[agent_cards, map_out, summary_out, raw_out, chain_out, step_state, run_btn]
|
| 605 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 606 |
app.load(
|
| 607 |
-
fn=
|
| 608 |
outputs=[map_out, summary_out, raw_out, chain_out, step_state, run_btn]
|
| 609 |
)
|
| 610 |
run_btn.click(
|
|
|
|
| 564 |
gr.Markdown("## HiCoTraj — Trajectory Visualization & Hierarchical CoT Demo")
|
| 565 |
gr.Markdown("*Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory* · ACM SIGSPATIAL GeoGenAgent 2025")
|
| 566 |
gr.Markdown("""
|
| 567 |
+
**Dataset:** NUMOSIM — a synthetic mobility dataset with realistic activity patterns across 6,000 agents.
|
| 568 |
+
> Stanford C, Adari S, Liao X, et al. *NUMoSim: A Synthetic Mobility Dataset with Anomaly Detection Benchmarks.* ACM SIGSPATIAL Workshop on Geospatial Anomaly Detection, 2024.
|
| 569 |
""")
|
| 570 |
|
| 571 |
gr.Markdown("### Select Agent")
|
|
|
|
| 596 |
|
| 597 |
def on_agent_click(agent_id):
|
| 598 |
cards_html = build_agent_cards(agent_id)
|
| 599 |
+
map_html, summary, raw_text, _demo_text, chain_html, step, btn = on_select_reset(agent_id)
|
| 600 |
return cards_html, map_html, summary, raw_text, chain_html, step, btn
|
| 601 |
|
| 602 |
agent_hidden.change(
|
| 603 |
fn=on_agent_click, inputs=agent_hidden,
|
| 604 |
outputs=[agent_cards, map_out, summary_out, raw_out, chain_out, step_state, run_btn]
|
| 605 |
)
|
| 606 |
+
def on_load(agent_id):
|
| 607 |
+
map_html, summary, raw_text, _demo_text, chain_html, step, btn = on_select_reset(agent_id)
|
| 608 |
+
return map_html, summary, raw_text, chain_html, step, btn
|
| 609 |
+
|
| 610 |
app.load(
|
| 611 |
+
fn=on_load, inputs=agent_hidden,
|
| 612 |
outputs=[map_out, summary_out, raw_out, chain_out, step_state, run_btn]
|
| 613 |
)
|
| 614 |
run_btn.click(
|