mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-31 19:01:28 +00:00
pre-commit run
This commit is contained in:
@@ -151,7 +151,11 @@ def _init_dagger_keyboard():
|
||||
def on_press(key):
|
||||
try:
|
||||
if events["in_reset"]:
|
||||
if key in [keyboard.Key.space, keyboard.Key.right] or hasattr(key, "char") and key.char == "c":
|
||||
if (
|
||||
key in [keyboard.Key.space, keyboard.Key.right]
|
||||
or hasattr(key, "char")
|
||||
and key.char == "c"
|
||||
):
|
||||
events["start_next_episode"] = True
|
||||
elif key == keyboard.Key.esc:
|
||||
events["stop_recording"] = True
|
||||
|
||||
Reference in New Issue
Block a user