Edward commited on
Commit
9871fae
·
1 Parent(s): 6485a4b

处理长度判断条件类型错误问题

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ prompt = """你是一个AI个人助手。你的回答需要满足以下要求:
14
  # 校验提示词长度
15
  def check_prompt_length(question):
16
  text_length = len(prompt) + len(question)
17
- if len(text_length) > MAX_PROMPT_LENGTH:
18
  return False
19
  return True
20
 
 
14
  # 校验提示词长度
15
  def check_prompt_length(question):
16
  text_length = len(prompt) + len(question)
17
+ if text_length > MAX_PROMPT_LENGTH:
18
  return False
19
  return True
20