Spaces:
Running
Running
dont update the iframe
Browse files
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=
|
| 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."""
|