From fc122c3228dfeeda7a126b75dbeea424d7fc2d9a Mon Sep 17 00:00:00 2001 From: Ernestina <48557439+ErnestinaQiu@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:01:11 +0800 Subject: [PATCH] format style --- pipelines/examples/tree-of-thought/src/llm/ernie_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/examples/tree-of-thought/src/llm/ernie_bot.py b/pipelines/examples/tree-of-thought/src/llm/ernie_bot.py index 2a679a834e90..370212fd30b7 100644 --- a/pipelines/examples/tree-of-thought/src/llm/ernie_bot.py +++ b/pipelines/examples/tree-of-thought/src/llm/ernie_bot.py @@ -57,8 +57,8 @@ def create(self, model, messages, temperature=0.6): return new_out -# 检查字符串中是否存在中文 和 数字 def contains_number(input_string): + # 检查字符串中是否存在中文 和 数字 return bool(re.search(r"\d", input_string))