This commit is contained in:
qingxu fu 2023-04-05 00:10:06 +08:00
parent 9f47d0f714
commit 0c9e18291a

View File

@ -147,7 +147,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)
click_handle = switchy_bt.click(route,[switchy_bt, *input_combo, gr.State(PORT)], output_combo)
click_handle = switchy_bt.click(ArgsGeneralWrapper(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):
# if len(file_upload)>0: return {area_file_up: gr.update(open=True)}