diff --git a/chromegpt/tools/selenium.py b/chromegpt/tools/selenium.py index f32cc50..7062110 100644 --- a/chromegpt/tools/selenium.py +++ b/chromegpt/tools/selenium.py @@ -83,7 +83,8 @@ def google_search(self, query: str) -> str: results = self._get_google_search_results() return ( "Which url would you like to goto? Provide the full url starting with http" - " or https to goto: " + json.dumps(results) + " or https to goto: " + + json.dumps(results) ) def _get_google_search_results(self) -> List[Dict[str, Any]]: @@ -323,10 +324,16 @@ def fill_out_form(self, form_input: Optional[str] = None, **kwargs: Any) -> str: except StaleElementReferenceException: retries += 1 if retries == MAX_RETRIES: - return f"Failed to fill out form input {key} after {MAX_RETRIES} retries." + return ( + f"Failed to fill out form input {key} after" + f" {MAX_RETRIES} retries." + ) continue except WebDriverException as e: - return f"Error filling out form with input {form_input}, message: {e.msg}" + return ( + f"Error filling out form with input {form_input}, message:" + f" {e.msg}" + ) if not filled_element: return (