mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
Update util.py解决返回元组报错
解决返回元组报错
This commit is contained in:
parent
afa469c08c
commit
3d97c29d74
1 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ def remove_punctuation_and_length(text):
|
||||||
char not in full_width_punctuations and char not in half_width_punctuations and char not in space and char not in full_width_space])
|
char not in full_width_punctuations and char not in half_width_punctuations and char not in space and char not in full_width_space])
|
||||||
|
|
||||||
if result == "Yeah":
|
if result == "Yeah":
|
||||||
return 0
|
return 0, result
|
||||||
return len(result), result
|
return len(result), result
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -120,4 +120,4 @@ def check_password(password):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# 如果满足所有条件,则返回True
|
# 如果满足所有条件,则返回True
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue