Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -447,7 +447,7 @@ def on_select_agent(agent_id):
|
|
| 447 |
|
| 448 |
with gr.Blocks(title="RFT Symbolic Agent Universe") as demo:
|
| 449 |
|
| 450 |
-
gr.Markdown("# 🌌 RFT Symbolic Agent Universe (
|
| 451 |
|
| 452 |
with gr.Row():
|
| 453 |
with gr.Column():
|
|
@@ -472,6 +472,7 @@ with gr.Blocks(title="RFT Symbolic Agent Universe") as demo:
|
|
| 472 |
|
| 473 |
start_btn = gr.Button("Start")
|
| 474 |
stop_btn = gr.Button("Stop")
|
|
|
|
| 475 |
|
| 476 |
transition_geometry_dd = gr.Dropdown(
|
| 477 |
["Rhombus", "Hexagonal", "2D Grid", "3D Lattice",
|
|
@@ -530,10 +531,9 @@ with gr.Blocks(title="RFT Symbolic Agent Universe") as demo:
|
|
| 530 |
pov_html = render_agent_pov(STATE["selected_agent"], STATE["agents"], STATE["graph"])
|
| 531 |
return graph, laws_html, metrics_html, pov_html
|
| 532 |
|
| 533 |
-
|
| 534 |
-
timer.tick(
|
| 535 |
fn=poll_update,
|
| 536 |
-
|
| 537 |
outputs=[graph_out, law_out, metrics_out, agent_pov_out],
|
| 538 |
)
|
| 539 |
|
|
|
|
| 447 |
|
| 448 |
with gr.Blocks(title="RFT Symbolic Agent Universe") as demo:
|
| 449 |
|
| 450 |
+
gr.Markdown("# 🌌 RFT Symbolic Agent Universe (Step‑Driven Simulation)")
|
| 451 |
|
| 452 |
with gr.Row():
|
| 453 |
with gr.Column():
|
|
|
|
| 472 |
|
| 473 |
start_btn = gr.Button("Start")
|
| 474 |
stop_btn = gr.Button("Stop")
|
| 475 |
+
step_btn = gr.Button("Step")
|
| 476 |
|
| 477 |
transition_geometry_dd = gr.Dropdown(
|
| 478 |
["Rhombus", "Hexagonal", "2D Grid", "3D Lattice",
|
|
|
|
| 531 |
pov_html = render_agent_pov(STATE["selected_agent"], STATE["agents"], STATE["graph"])
|
| 532 |
return graph, laws_html, metrics_html, pov_html
|
| 533 |
|
| 534 |
+
step_btn.click(
|
|
|
|
| 535 |
fn=poll_update,
|
| 536 |
+
inputs=[],
|
| 537 |
outputs=[graph_out, law_out, metrics_out, agent_pov_out],
|
| 538 |
)
|
| 539 |
|