diff --git a/requirements.txt b/requirements.txt index 56ef81216..ded115e6e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ contexttimer ipython pyyaml>=6 pandas -gradio>=5 +gradio>=5.5 # issue with DataFrame scrolling before 5.5 gitpython # for the reproducibility script requests matplotlib diff --git a/src/agentlab/agents/dynamic_prompting.py b/src/agentlab/agents/dynamic_prompting.py index ac49089c9..1ddbf3be7 100644 --- a/src/agentlab/agents/dynamic_prompting.py +++ b/src/agentlab/agents/dynamic_prompting.py @@ -443,7 +443,7 @@ def shrink(self): def _prompt(self) -> str: return f""" # Observation of current step: -{self.tabs}{self.html.prompt}{self.ax_tree.prompt}{self.focused_element.prompt}{self.error.prompt} +{self.tabs.prompt}{self.html.prompt}{self.ax_tree.prompt}{self.focused_element.prompt}{self.error.prompt} """ diff --git a/src/agentlab/experiments/study.py b/src/agentlab/experiments/study.py index cf53db3a2..4e3bcceac 100644 --- a/src/agentlab/experiments/study.py +++ b/src/agentlab/experiments/study.py @@ -246,6 +246,7 @@ def get_report(self, ignore_cache=False, ignore_stale=False): self.dir, ignore_cache=ignore_cache, ignore_stale=ignore_stale ) + @staticmethod def load(dir: Path) -> "Study": dir = Path(dir) study_path = dir / "study.pkl.gz"