From 94d98a2626213e670ac78c22165876ccfb15e5b7 Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Mon, 29 Apr 2024 16:36:33 -0700 Subject: [PATCH] fix flake8 --- vision_agent/agent/agent_coder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vision_agent/agent/agent_coder.py b/vision_agent/agent/agent_coder.py index c49d32be..89216f73 100644 --- a/vision_agent/agent/agent_coder.py +++ b/vision_agent/agent/agent_coder.py @@ -27,8 +27,8 @@ def write_tests(question: str, code: str, model: LLM) -> str: def preprocess_data(code: str) -> str: - if f"```python" in code: - code = code[code.find(f"```python") + len(f"```python") :] + if "```python" in code: + code = code[code.find("```python") + len("```python") :] code = code[: code.find("```")] return code