Spaces:
Running
Running
Commit ·
cd98739
1
Parent(s): b1f949a
refine
Browse files
app.py
CHANGED
|
@@ -527,13 +527,13 @@ def on_select_reset(agent_id):
|
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
-
SHOWCASE_AGENTS = sample_agents[:
|
| 531 |
|
| 532 |
|
| 533 |
def build_agent_cards(selected_id):
|
| 534 |
selected_id = int(selected_id)
|
| 535 |
parts = []
|
| 536 |
-
parts.append("<div style='display:grid;grid-template-columns:repeat(
|
| 537 |
for aid in SHOWCASE_AGENTS:
|
| 538 |
row = demo[demo["agent_id"] == aid].iloc[0]
|
| 539 |
age = int(row["age"]) if row["age"] > 0 else "?"
|
|
@@ -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 |
-
> 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")
|
|
@@ -582,11 +582,11 @@ with gr.Blocks(title="HiCoTraj Demo", theme=gr.themes.Soft()) as app:
|
|
| 582 |
with gr.Column(scale=1):
|
| 583 |
gr.Markdown("### Trajectory Map")
|
| 584 |
map_out = gr.HTML()
|
| 585 |
-
gr.Markdown("###
|
| 586 |
with gr.Tabs():
|
| 587 |
-
with gr.Tab("Summary"):
|
| 588 |
summary_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
|
| 589 |
-
with gr.Tab("
|
| 590 |
raw_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
|
| 591 |
show_all_btn = gr.Button("Show All Days", size="sm", variant="secondary")
|
| 592 |
|
|
|
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
+
SHOWCASE_AGENTS = sample_agents[:6]
|
| 531 |
|
| 532 |
|
| 533 |
def build_agent_cards(selected_id):
|
| 534 |
selected_id = int(selected_id)
|
| 535 |
parts = []
|
| 536 |
+
parts.append("<div style='display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:4px 0;'>")
|
| 537 |
for aid in SHOWCASE_AGENTS:
|
| 538 |
row = demo[demo["agent_id"] == aid].iloc[0]
|
| 539 |
age = int(row["age"]) if row["age"] > 0 else "?"
|
|
|
|
| 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[1]
|
| 568 |
+
> [1]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")
|
|
|
|
| 582 |
with gr.Column(scale=1):
|
| 583 |
gr.Markdown("### Trajectory Map")
|
| 584 |
map_out = gr.HTML()
|
| 585 |
+
gr.Markdown("### Processed Data")
|
| 586 |
with gr.Tabs():
|
| 587 |
+
with gr.Tab("Mobility Summary"):
|
| 588 |
summary_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
|
| 589 |
+
with gr.Tab("Weekly Check-in Mobility"):
|
| 590 |
raw_out = gr.Textbox(lines=10, interactive=False, label="", show_label=False)
|
| 591 |
show_all_btn = gr.Button("Show All Days", size="sm", variant="secondary")
|
| 592 |
|