提升稳定性

This commit is contained in:
qingxu fu
2023-04-09 18:59:43 +08:00
parent 8ddc1adae4
commit 587271ec42
10 changed files with 387 additions and 111 deletions

View File

@@ -21,6 +21,8 @@ def ArgsGeneralWrapper(f):
yield from f(txt_passon, *args, **kwargs)
return decorated
def update_ui(chatbot, history, msg='正常', *args, **kwargs):
yield chatbot, history, msg
def get_reduce_token_percent(text):
try: