Fix OS examples annotated by Yitao

This commit is contained in:
Timothyxxx
2024-01-25 19:57:32 +08:00
parent 0c34fccc15
commit b9ae4174b1
24 changed files with 327 additions and 358 deletions

View File

@@ -213,7 +213,7 @@ class DesktopEnv(gym.Env):
self.cache_dir: str = os.path.join(self.cache_dir_base, self.task_id)
os.makedirs(self.cache_dir, exist_ok=True)
self.instruction = task_config["instruction"]
self.config = task_config["config"]
self.config = task_config["config"] if "config" in task_config else []
# evaluator dict
# func -> metric function string, or list of metric function strings