From c0655f9a93a9f063bed8e9da1d1302c3ca844cfc Mon Sep 17 00:00:00 2001 From: recursix Date: Thu, 7 Nov 2024 11:39:14 -0500 Subject: [PATCH 1/2] Fix prompt formatting in Observation and add static method to Study class --- src/agentlab/agents/dynamic_prompting.py | 2 +- src/agentlab/experiments/study.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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" From 48dcb4d347901e0bb6ad481250f26b5e635c7168 Mon Sep 17 00:00:00 2001 From: recursix Date: Thu, 7 Nov 2024 12:37:24 -0500 Subject: [PATCH 2/2] Update gradio version to 5.5 to fix DataFrame scrolling issue --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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