Spaces:
Running
Running
Update toolbox.py
Browse files- toolbox.py +2 -2
toolbox.py
CHANGED
@@ -76,9 +76,9 @@ def CatchException(f):
|
|
76 |
装饰器函数,捕捉函数f中的异常并封装到一个生成器中返回,并显示到聊天当中。
|
77 |
"""
|
78 |
@wraps(f)
|
79 |
-
def decorated(txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT):
|
80 |
try:
|
81 |
-
yield from f(txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT)
|
82 |
except Exception as e:
|
83 |
import traceback
|
84 |
from check_proxy import check_proxy
|
|
|
76 |
装饰器函数,捕捉函数f中的异常并封装到一个生成器中返回,并显示到聊天当中。
|
77 |
"""
|
78 |
@wraps(f)
|
79 |
+
def decorated(api, txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT):
|
80 |
try:
|
81 |
+
yield from f(api, txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT)
|
82 |
except Exception as e:
|
83 |
import traceback
|
84 |
from check_proxy import check_proxy
|