RFTSystems commited on
Commit
ca7e62f
·
verified ·
1 Parent(s): 473a928

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 (Live + Verified)")
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
- timer = gr.Timer()
534
- timer.tick(
535
  fn=poll_update,
536
- every=0.1,
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