From 62ad0c16074ef99b5d4357c72dba04c6e6d94490 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 17 May 2023 22:28:48 -0300 Subject: [PATCH] Removed dots from logs --- chatgpt_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chatgpt_helper.py b/chatgpt_helper.py index 4d723ab..ec04750 100644 --- a/chatgpt_helper.py +++ b/chatgpt_helper.py @@ -51,7 +51,7 @@ async def extract_html_from_chatgpt_response(returned_string: str) -> Union[str, except Exception: match = returned_string.split("") if len(match) > 1: - logging.info("No valid HTML found, trying to parse...") + logging.info("No valid HTML found, trying to parse") html = "" + match[1] html_match = html.split("") possible_html = html_match[0] + "" @@ -86,7 +86,7 @@ async def get_random_topic() -> str: topics = completion.choices[0].message.content.split(",") if len(topics) < 5: - logging.info(f"The topics is too short: {topics}. Retrying...") + logging.info(f"The topics is too short: {topics}. Retrying") return await get_random_topic() logging.info(f"The topics list is: {topics}") @@ -181,7 +181,7 @@ async def get_chatgpt_html_response(topic: str = None, count: int = 0) -> str: html = await extract_html_from_chatgpt_response(response) if not html: - logging.info(f"No HTML was found. The response was {response}. Retrying...") + logging.info(f"No HTML was found. The response was {response}. Retrying") return await get_chatgpt_html_response(topic, count) pattern = r'src="([^"]*)"'