askuric HF Staff commited on
Commit
519b467
·
1 Parent(s): 7a6243f

dont update the iframe

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,11 +75,11 @@ with gr.Blocks(title="Pinocchio + MeshCat — Live") as demo:
75
  # only use the first k values (ignore hidden/unused sliders)
76
  robot.set_joints(vals[:k])
77
  # viewer iframe persists; nothing to update there
78
- return gr.update()
79
 
80
  # Wire all sliders to the same handler (fixed signature via *vals)
81
  for s in sliders:
82
- s.change(on_sliders, inputs=sliders, outputs=viewer, queue=True)
83
 
84
  def on_neutral():
85
  """Reset robot to neutral and reflect in visible sliders."""
 
75
  # only use the first k values (ignore hidden/unused sliders)
76
  robot.set_joints(vals[:k])
77
  # viewer iframe persists; nothing to update there
78
+ #return gr.update()
79
 
80
  # Wire all sliders to the same handler (fixed signature via *vals)
81
  for s in sliders:
82
+ s.change(on_sliders, inputs=sliders, outputs=None, queue=True)
83
 
84
  def on_neutral():
85
  """Reset robot to neutral and reflect in visible sliders."""