Add api examples IL docs (#1391)

* feat: add api examples for record, replay, eval for il

* fix: Add typings utils.py

* fix: Add inference to text eval

* fix: Add placeholders dataset and policy repo_ids

* fix: Improve text

* fix: Add type to 3rd ;)

* chore(docs): update API examples for replay, eval and record

---------

Co-authored-by: Steven Palma <steven.palma@huggingface.co>
This commit is contained in:
Pepijn
2025-06-27 11:57:24 +02:00
committed by GitHub
parent f3d931e1b2
commit 2f9ba4e2cc
2 changed files with 230 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ def capture_timestamp_utc():
return datetime.now(timezone.utc)
def say(text, blocking=False):
def say(text: str, blocking: bool = False):
system = platform.system()
if system == "Darwin":
@@ -212,7 +212,7 @@ def say(text, blocking=False):
subprocess.Popen(cmd, creationflags=subprocess.CREATE_NO_WINDOW if system == "Windows" else 0)
def log_say(text, play_sounds, blocking=False):
def log_say(text: str, play_sounds: bool = True, blocking: bool = False):
logging.info(text)
if play_sounds: