mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 09:46:00 +00:00
pre-commit run
This commit is contained in:
@@ -151,7 +151,11 @@ def _init_dagger_keyboard():
|
|||||||
def on_press(key):
|
def on_press(key):
|
||||||
try:
|
try:
|
||||||
if events["in_reset"]:
|
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
|
events["start_next_episode"] = True
|
||||||
elif key == keyboard.Key.esc:
|
elif key == keyboard.Key.esc:
|
||||||
events["stop_recording"] = True
|
events["stop_recording"] = True
|
||||||
|
|||||||
Reference in New Issue
Block a user