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])
|
||||
|
||||
if result == "Yeah":
|
||||
return 0
|
||||
return 0, result
|
||||
return len(result), result
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue