From 82952882ebd77320614f1ff976fc37758bee5cdb Mon Sep 17 00:00:00 2001 From: qingxu fu <505030475@qq.com> Date: Wed, 5 Apr 2023 00:11:12 +0800 Subject: [PATCH] BUG FIX --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f9511b0..aa29e59 100644 --- a/main.py +++ b/main.py @@ -146,7 +146,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False, css=advanced_css) as de # 随变按钮的回调函数注册 def route(k, *args, **kwargs): if k in [r"打开插件列表", r"请先从插件列表中选择"]: return - yield from crazy_fns[k]["Function"](*args, **kwargs) + yield from ArgsGeneralWrapper(crazy_fns[k])["Function"](*args, **kwargs) click_handle = switchy_bt.click(route,[switchy_bt, *input_combo, gr.State(PORT)], output_combo) click_handle.then(on_report_generated, [file_upload, chatbot], [file_upload, chatbot]) # def expand_file_area(file_upload, area_file_up):