From 43b0b26b098ea2db95a27d1b54920901aba9898a Mon Sep 17 00:00:00 2001 From: "G.RQ" <61670021+guoruqiang@users.noreply.github.com> Date: Sat, 28 Dec 2024 07:05:12 +0000 Subject: [PATCH] =?UTF-8?q?fix=20=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 458243a6..aff63ac3 100644 --- a/main.py +++ b/main.py @@ -226,8 +226,8 @@ def main(): multiplex_sel.select( None, [multiplex_sel], None, _js=f"""(multiplex_sel)=>run_multiplex_shift(multiplex_sel)""") cancel_handles.append(submit_btn.click(**predict_args)) - resetBtn.click(None, None, [chatbot, history, status], _js="""(a,b,c)=>clear_conversation(a,b,c)""") # 先在前端快速清除chatbot&status - resetBtn2.click(None, None, [chatbot, history, status], _js="""(a,b,c)=>clear_conversation(a,b,c)""") # 先在前端快速清除chatbot&status + resetBtn.click(None, None, [chatbot, history, status], _js="""(a,b,c)=>reset_conversation(a,b,c)""") # 先在前端快速清除chatbot&status + resetBtn2.click(None, None, [chatbot, history, status], _js="""(a,b,c)=>reset_conversation(a,b,c)""") # 先在前端快速清除chatbot&status # reset_server_side_args = (lambda history: ([], [], "已重置"), [history], [chatbot, history, status]) # resetBtn.click(*reset_server_side_args) # 再在后端清除history # resetBtn2.click(*reset_server_side_args) # 再在后端清除history